Nagios Core 3.2.3 - is it possible to "grey" out a host?

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
LeftyF
Posts: 5
Joined: Thu Nov 07, 2013 2:35 pm

Nagios Core 3.2.3 - is it possible to "grey" out a host?

Post by LeftyF »

Hi all. New to the forum. I'm currently running Nagios Core 3.2.3 on Ubuntu 12.04. All is working as expected. My question is around a particular scenario. In the environment there are devices I need to keep listed in the host screen, but at times these devices will be powered down and as such I don't want to monitor them. I have enabled external commands and I can select "Disable" for the various checks, but the monitoring page still displays these hosts in red. This is not ideal as it makes working out which hosts should be addressed vs those that are administratively down difficult to identify. There is a big black "X" next to those that are not being checked but as we all know when there is too much red on a monitoring page real alarms get less and less attention. Is there some way to modify this in the GUI, possibly displaying hosts with checks disabled in a different color (maybe grey)? I've searched around the documentation and on the various forums but my question seems to be unique.

Thanks in advance for any advice
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Core 3.2.3 - is it possible to "grey" out a host?

Post by abrist »

As the web pages are generated from cgis, editing them is quite painful. If the hosts in question are easily defined in a logical block - subnet/similar hostnames/etc, you could create a script that would nmap a subnet or ping a list of hosts and only generate the configs for those hosts that respond. The generated config would then get copied into the object directories and the script would restart nagios.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
LeftyF
Posts: 5
Joined: Thu Nov 07, 2013 2:35 pm

Re: Nagios Core 3.2.3 - is it possible to "grey" out a host?

Post by LeftyF »

I thought about something like that, but I don't always want to ignore a down state. I only want to ignore it if it's been administratively changed to disable checking. I just want to make it more obvious that it's currently disabled if possible.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Core 3.2.3 - is it possible to "grey" out a host?

Post by slansing »

As far as greying the name out, I do not see an obvious way to do this. You may be able to change an icon on that host via an event handler retroactively, but I'm not sure how feasible that would be.
LeftyF
Posts: 5
Joined: Thu Nov 07, 2013 2:35 pm

Re: Nagios Core 3.2.3 - is it possible to "grey" out a host?

Post by LeftyF »

Understood. I think it will come down to educating the staff watching the monitors. There is the "X" icon that shows up after active checks have been disabled so that will have to be enough. The folks reading the gauges are non-technical so there will be a learning curve no matter how I set it up.

Thanks for the replies!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Core 3.2.3 - is it possible to "grey" out a host?

Post by abrist »

Most definitely. It may be worth tossing a feature request on http://tracker.nagios.org - though it may not come to fruition.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked