Adding arguments to the host check_command
Tedman Eng
teng at dataway.com
Wed May 25 22:45:26 CEST 2005
Only a small set of variables are available to the host_check command.
http://nagios.sourceforge.net/docs/1_0/macros.html
-----Original Message-----
From: Danny Russell [mailto:drussell at mpifix.com]
Sent: Wednesday, May 25, 2005 1:40 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Adding arguments to the host check_command
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
-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list