Hello!
We are using nagios 2.0b6.
According to the manual for nagios-2.x at www.nagios.org:
(Host definition, the description of check_command):
-------------------------------------------------------------------
This directive is used to specify the short name of the command that should
be used to check if the host is up or down. Typically, this command would try
and ping the host to see if it is "alive". The command must return a status
of OK (0) or Nagios will assume the host is down. If you leave this argument
blank, the host will not be checked - Nagios will always assume the host is up.
This is useful if you are monitoring printers or other devices that are
frequently turned off. The maximum amount of time that the notification
command can run is controlled by the host_check_timeout option.
--------------------------------------------------------------------
We also found this feature (leaving check_command blank) very useful. But in
our configuration we have:
define host {
name h1
check_command check-host-alive
register 0
}
define host {
name h2
check_command
register 0
}
And nagios reports:
# nagios -v nagios.cfg
Nagios 2.0b6
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-14-2005
License: GPL
Reading configuration data...
Error: Could not add object property in file '/usr/local/etc/nagios/templates.cfg' on line 21.
.....
Is it possible to allow one to define empty check_command to disable check
for host health as described in the manual?
Thanks in advance!
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]