Adding arguments to the host check_command

Danny Russell drussell at mpifix.com
Wed May 25 22:40:05 CEST 2005


I am having a problem adding arguments to the host check_command. The
reason I want to do this, is that the ports I want to check are running
on a non pingable ip address, so I want to ping the router directly in
front of them.

 

I am having problems using:

define host{

        use                                   generic-host            ;
Name of host template to use

        host_name                        Rotters 2

        alias                                 Rotters Auto Clinic -
Olympia,WA

        address                             1.2.3.1

        check_command
check_ping!1.2.3.4!300.0,30%!500.0,75%

        max_check_attempts         10

        notification_interval             5

        notification_period              24x7

        notification_options            d,u,r

        }

 

I would think this would work, but when I run Nagios -v
/etc/Nagios/Nagios.cfg:

Checking hosts...

Error: Host check command
'check_ping_special!1.2.3.4!300.0,30%!500.0,75%' specified for host 'R

otters 2' is not defined anywhere!

 

It's like you cannot pass parameters on the host check_command? Is this
correct?

 

For a temporary work around I created my own check-host-alive-rotters
command that has the router's ip hard coded in the customer
checkcommands.cfg file.

 

 

What would you suggest to solve my problem?

 

 

Thanks!

 

 

Danny Russell

Mobile Productivity, Inc.

drussell at mpifix.com

Enabling the World To Work

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050525/ae7d069b/attachment.html>


More information about the Users mailing list