check_command options don't work when defined in hosts.cfg?

Subhendu Ghosh sghosh at sghosh.org
Thu Dec 5 21:26:16 CET 2002


Nagios 1.0 and pre do not accept arguments to host check commands, only 
service commands.

Use the post 1.0 CVS if you need that functionality.  I think Ethan added 
it earlier this week.

-sg

On 5 Dec 2002, Jack Coates wrote:

> How come this works in services.cfg but doesn't in hosts.cfg?
> 
> checkcommands.cfg:
> # 'check_multisvc.pl' command definition
> define command{
>         command_name    check_multisvc.pl
>         command_line    $USER1$/contrib/check_multisvc.pl -H
> $HOSTADDRESS$ -F $ARG1$ -w $ARG2$ -c $ARG3$
>         }
> 
> services.cfg:
> define service{
>         hostgroup_name                  web-servers
>         service_description             apache
>         check_command                  
> check_multisvc.pl!/etc/nagios/check_multisvc-web.cfg!3!4
>         max_check_attempts              3
>         normal_check_interval           10
> 
> hosts.cfg:
> define host{
>         host_name                       pacp9
>         alias                           i01sv4166
>         address                         147.208.166.81
>         parents                         worldcom-router
>         check_command                  
> check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4
> 
> nagios -v output:
> Error: Host check command
> 'check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4' specified for
> host 'pacp9' is not defined anywhere!
> 
> check_multisvc.pl is my own script which I plan to post after I get it
> into production; however, this happens with check_tcp as well. Nagios
> 1.0b6 on Mandrake 9.0.
> 
> thanks,
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list