Good morning or afternoon
I was recently approached by out patching team that most if not all of our servers are going to undergo maintenance. Is there a was to just turn off all Nagios alerting for a few hours?
Suppress All alerts from Nagios
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Suppress All alerts from Nagios
Hi @jasalsbury,
Yes. You can use the scheduled downtime feature in Nagios XI. Go to Home > Incident Management > Schedule Downtime and select all hosts and the schedule downtime for associated services option (see guide below).
Nagios XI Configuring Downtime
Alternatively, you can turn off notifications in the main configuration file.
See: https://assets.nagios.com/downloads/nag ... gmain.html
Yes. You can use the scheduled downtime feature in Nagios XI. Go to Home > Incident Management > Schedule Downtime and select all hosts and the schedule downtime for associated services option (see guide below).
Nagios XI Configuring Downtime
Alternatively, you can turn off notifications in the main configuration file.
See: https://assets.nagios.com/downloads/nag ... gmain.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Suppress All alerts from Nagios
Hello, @jsalsbury. There are a few ways to do that. You can open:
And change:/usr/local/nagios/etc/nagios.cfg
toenable_notifications=1
And then restart the nagios service to apply changes:enable_notifications=0
Or can do it from the GUI by clicking on the X next to "Notifications":service nagios restart
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Suppress All alerts from Nagios
Thank you, very helpful.
One last question, they won't build up and all send out once they are turned back on right?
One last question, they won't build up and all send out once they are turned back on right?
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Suppress All alerts from Nagios
@jsalsbury, Not if you turn them off before hosts go into a critical state and notifications go out to the mailing queue. In that case, you can run the following query to clear out the notification tables in the database(and that should stop notifications):
echo "truncate table xi_events; truncate table xi_meta; truncate table xi_eventqueue;" | mysql -uroot -pnagiosxi nagiosxi
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Suppress All alerts from Nagios
I also found this, It looks as if i could turn off services alerts and still have the same outcome?
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Suppress All alerts from Nagios
@jsalsbury, Yes, scheduled downtime would work as well. Especially if you don't have that many service and host checks. I'd not recommend scheduling downtime for 10 thousand hosts and services though. In that case two options I mentioned earlier would work better.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Suppress All alerts from Nagios
Outstanding
thanks
thanks
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Suppress All alerts from Nagios
@jsalsbury, I will be closing this thread as resolved but feel free to open a new one if you have any other questions.
Thanks!
Thanks!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.