Host Down Services Up - how now?


#1

I’m assuming this is a config issue since I’m a noob. But I’ve got a webserver that is down but has 2 services that are up.

here’s my object cfg:

define host{
use generic-switch ; Inherit default values from a template
host_name www1.bernardsboe.com ; The name we’re giving to this switch
alias www1.bernardsboe.com ; A longer name associated with the switch
address www1.bernardsboe.com ; IP address of the switch
hostgroups iis-servers ; Host groups this switch is associated with
}

define service{
use generic-service ; Name of service template to use
host_name www1.bernardsboe.com
service_description HTTP
check_command check_http!"-t 30"
notifications_enabled 1
}

The http service is always up, bot the host is down (Host Check Timed Out).

I thought an UP on a service would return a downed host to UP. What have I missed?


#2

Found it here:
lena.franken.de/nagios/hosts_without_ping.html

my host doesn’t respond to pings, so the default host check was failing while the http service check was passing. Ergo the host was down while the service was up. The above link uses a new host check based on http instead of ping. Everything back to zen. Nagios rocks!