Host is grey instead of green or red?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
staun
Posts: 17
Joined: Thu Oct 11, 2012 3:42 am

Host is grey instead of green or red?

Post by staun »

I have a few Hosts in my Status Grid (BBMap) that has the grey status light (host Pending) and they never change. The services are working fine for the Hosts

Any idea why this is?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Host is grey instead of green or red?

Post by mguthrie »

There could be a couple of causes for this:

- Active hosts checks may not be enabled for these hosts -> verify this in the host details for these hosts
- Nagios and Ndoutils may need to be restarted:

Code: Select all

service nagios stop
killall -9 nagios
service ndo2db restart
service nagios start
- Or you could have database corruption in one or more tables in mysql:
http://assets.nagios.com/downloads/nagi ... irdatabase
staun
Posts: 17
Joined: Thu Oct 11, 2012 3:42 am

Re: Host is grey instead of green or red?

Post by staun »

Active hosts checks may not be enabled for these hosts -> verify this in the host details for these hosts
I think the hosts are active checked (Host Management > Hostname > Check Settings > Active checks enabled = ON) ?

I looked at the other hosts that have a green light and they are set to SKIP?

Did a repair of the database, but they are still grey?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host is grey instead of green or red?

Post by scottwilkerson »

Do the hosts have a check command set?
Configure -> CCM -> Hosts -> Modify
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
staun
Posts: 17
Joined: Thu Oct 11, 2012 3:42 am

Re: Host is grey instead of green or red?

Post by staun »

There is no Check Command attached to the host. Actually there is none of my hosts with a check_command - everything goes through Services.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host is grey instead of green or red?

Post by scottwilkerson »

This is why it is grey, because it doesn't have a check command.

If you would like it green you can set the "Initial state" to o in
Configure -> CCM -> Hosts -> Modify -> Check Settings

Or you can set the check command to check_dummy and set
$ARG1$ = 0
$ARG2$ = OK
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
staun
Posts: 17
Joined: Thu Oct 11, 2012 3:42 am

Re: Host is grey instead of green or red?

Post by staun »

well, that did it. I just wonder why all the others are green and do not have this setting applied :-)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host is grey instead of green or red?

Post by scottwilkerson »

Because they may have a template applied and are getting the check command from the template
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked