Page 1 of 1

Schedule Downtime Items to NOT show in Operations Screen

Posted: Thu Sep 25, 2014 12:08 pm
by mberkley
We have a entire hostgroup of 50+ servers that we put into a daily Scheduled Downtime group.
This server farm often produces hundreds of CPU usage, and memory alerts and we had to suppress the alerting...

The caveat is that the Ops screen is the center of our entire NOC Command Center, and scheduled downtime items still show up. And we are unable to mass acknowledge them since they are in a "scheduled downtime" state.

Is there some way we can correct this?

-HyattTeam

Re: Schedule Downtime Items to NOT show in Operations Screen

Posted: Thu Sep 25, 2014 2:21 pm
by Box293
You could create some service dependencies that in turn would prevent the dependent service checks being executed when the depended service goes down.

Re: Schedule Downtime Items to NOT show in Operations Screen

Posted: Thu Sep 25, 2014 3:18 pm
by jwelch
I normally use the 'Operations Center' screen and I think that one correctly filters out the items in scheduled downtime.

But if you need to use the 'Operations Screen', you can try the following:

cd /usr/local/nagiosxi/html/includes/components/opscreen #where the component lives
cp -p merlin.php merlin.php.orig #insurance

Now the fun part:
find the line: (part of the service status section...I think it's line 259)

WHERE nagios_servicestatus.problem_has_been_acknowledged='0' AND nagios_servicestatus.current_state!='0' AND nagios_hoststatus.problem_has_been_acknowledged='0' AND nagios_hoststatus.last_hard_state='0' AND nagios_hoststatus.current_state='0'

and change it to:

WHERE nagios_servicestatus.scheduled_downtime_depth='0' AND nagios_servicestatus.problem_has_been_acknowledged='0' AND nagios_servicestatus.current_state!='0' AND nagios_hoststatus.problem_has_been_acknowledged='0' AND nagios_hoststatus.last_hard_state='0' AND nagios_hoststatus.current_state='0'

Then save the file and reload the page in the GUI. It seemed to work for me. If not, copy the merlin.php.orig file back over merlin.php.

Re: Schedule Downtime Items to NOT show in Operations Screen

Posted: Thu Sep 25, 2014 3:52 pm
by lmiltchev
Thanks, jwelch!

@mberkley

Let us know if the jwelch's solution worked for you.

Re: Schedule Downtime Items to NOT show in Operations Screen

Posted: Mon Sep 29, 2014 11:12 am
by mberkley
lmiltchev wrote:Thanks, jwelch!

@mberkley

Let us know if the jwelch's solution worked for you.

Thank You, we are trying this method today!

Re: Schedule Downtime Items to NOT show in Operations Screen

Posted: Mon Sep 29, 2014 12:57 pm
by abrist
Great. Let us know how it goes!