Schedule Downtime Items to NOT show in Operations Screen

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mberkley
Posts: 38
Joined: Thu Mar 27, 2014 10:46 am
Location: Chicago, IL
Contact:

Schedule Downtime Items to NOT show in Operations Screen

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Schedule Downtime Items to NOT show in Operations Screen

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: Schedule Downtime Items to NOT show in Operations Screen

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Schedule Downtime Items to NOT show in Operations Screen

Post by lmiltchev »

Thanks, jwelch!

@mberkley

Let us know if the jwelch's solution worked for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mberkley
Posts: 38
Joined: Thu Mar 27, 2014 10:46 am
Location: Chicago, IL
Contact:

Re: Schedule Downtime Items to NOT show in Operations Screen

Post 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!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Schedule Downtime Items to NOT show in Operations Screen

Post by abrist »

Great. Let us know how it goes!
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