This is Bavaria, Germany!
echolon:/etc/nagios/echolon# cat checkcommands.cfg
# checkcommands.cfg - Nagios configuration file for local user changes
#
# Nagios packages wont touch this file anymore. If you want to define
# your own commands for nagios use this file and add the commands here.
# Dont add any command with a name that already exists or nagios wont
# run.
define command {
command_name check-host-alive-by-http
command_line $USER1$/check_http -H $HOSTADDRESS
}
Now you can use this command in the hosts.cfg, not in the services.cfg as usual!
define host{
use generic-host
host_name a-host-behind-a-firewall.mydomain.de
alias a-host-behind-a-firewall.mydomain.de
address a-host-behind-a-firewall.mydomain.de
; I cannot reach this host by ping
; to prevent a "host down" and all services running,
; I check the host-alive with another service running there
check_command check-host-alive-by-http
}
Back to my Nagios homepage.