Page 1 of 1

Host services working, but host is down???

Posted: Thu Jan 13, 2011 12:04 pm
by cyberlogi
When I look at the nagios dashboard, under Hosts, it shows that my NPRE host is down, but when I look at the services running on that host, they are active and actually returning values.

I assume I have something setup wrong, but can't for the life of me figure out where. Please let me know if you have any ideas.

Here is my host config (/usr/local/nagios/etc/objects/hosts/test.cfg):

Code: Select all

define host{
        alias                   Test Server 1
	contact_groups			admins
        host_name               test1
        address                 ip-10-162-41-11.us-west-1.compute.internal
        use                     linux-server
        register                1
        }
And here is the configuration imports from the nagios.cfg

Code: Select all

cfg_file=/usr/local/nagios/etc/objects/commands.cfg
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/objects/templates.cfg

# Definitions for monitoring the local (Linux) host
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg

# You can also tell Nagios to process all config files (with a .cfg
# extension) in a particular directory by using the cfg_dir
# directive as shown below:

cfg_dir=/usr/local/nagios/etc/objects/commands
cfg_dir=/usr/local/nagios/etc/objects/hosts
cfg_dir=/usr/local/nagios/etc/objects/services
And my services (/usr/local/nagios/etc/objects/services/test.cfg):

Code: Select all

define service{
        use                     generic-service
        host_name               test1
        service_description     Check load
        check_command           check_nrpe!check_load
        }

define service{
        use                     generic-service
        host_name               test1
        service_description     Current users
        check_command           check_nrpe!check_users
        }

define service{
        use                     generic-service
        host_name               test1
        service_description     /dev/hda1 Free Space
        check_command           check_nrpe!check_hda1
        }

define service{
        use                     generic-service
        host_name               test1
        service_description     Total processes
        check_command           check_nrpe!check_total_procs
        }

define service{
        use                     generic-service
        host_name               test1
        service_description     Zombie processes
        check_command           check_nrpe!check_zombie_procs
        }

Re: Host services working, but host is down???

Posted: Thu Jan 13, 2011 12:09 pm
by tonyyarusso
You probably have ping blocked by your firewall.

Re: Host services working, but host is down???

Posted: Thu Jan 13, 2011 12:53 pm
by cyberlogi
Thanks, that was it.

Re: Host services working, but host is down???

Posted: Thu Jan 13, 2011 1:48 pm
by tonyyarusso
Sweet, gotta love the easy ones. :)