Host services working, but host is down???

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cyberlogi
Posts: 3
Joined: Wed Jan 12, 2011 7:39 pm

Host services working, but host is down???

Post 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
        }
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

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

Post by tonyyarusso »

You probably have ping blocked by your firewall.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
cyberlogi
Posts: 3
Joined: Wed Jan 12, 2011 7:39 pm

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

Post by cyberlogi »

Thanks, that was it.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

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

Post by tonyyarusso »

Sweet, gotta love the easy ones. :)
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked