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
Schedule Downtime Items to NOT show in Operations Screen
- 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
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.
Re: Schedule Downtime Items to NOT show in Operations Screen
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.
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
Thanks, jwelch!
@mberkley
Let us know if the jwelch's solution worked for you.
@mberkley
Let us know if the jwelch's solution worked for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Schedule Downtime Items to NOT show in Operations Screen
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
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.
"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.