Clear Emails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nags
Posts: 2
Joined: Fri Jan 29, 2016 12:40 pm

Clear Emails

Post by nags »

Long story short, if we experience a major outage, nagios will send down and recovery emails for hours. Is there a way to clear this manually? I have tried mailq, but nothing is listed.

[root@localhost ~]# mailq
Mail queue is empty
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Clear Emails

Post by dwhitfield »

First, a question: are you getting notifications now or are you just looking to prevent a flood in the future?

There are at least a couple of way to tackle this. What's the output of ps -ef | grep bin/nagios | grep -v grep? It's possible there's actually a problem with your notifications.

You can disable notifications when an outage occurs, but you need to remember there are both host and service checks.

If you set your notification_interval to 0, it will only notify you once about a down host / service.

There's additional info at https://assets.nagios.com/downloads/nag ... ios-XI.pdf.

Please let us know if you need additional help understanding your options on reducing notifications.
nags
Posts: 2
Joined: Fri Jan 29, 2016 12:40 pm

Re: Clear Emails

Post by nags »

Heres the output. We are still getting alerts right now. I have ran postsuper -d ALL and it is still sending emails. We put in a acl to block the traffic from the Nagios server, so I know its all coming from Nagios.

[root@localhost ~]# ps -ef | grep bin/nagios | grep -v grep
nagios 10931 1 0 09:58 ? 00:00:13 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 10933 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios --w orker /usr/local/nagios/var/rw/nagios.qh
nagios 10934 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios --w orker /usr/local/nagios/var/rw/nagios.qh
nagios 10935 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios --w orker /usr/local/nagios/var/rw/nagios.qh
nagios 10936 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios --w orker /usr/local/nagios/var/rw/nagios.qh
nagios 10937 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios --w orker /usr/local/nagios/var/rw/nagios.qh
nagios 10938 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios --w orker /usr/local/nagios/var/rw/nagios.qh
nagios 10967 10931 0 09:58 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Clear Emails

Post by tgriep »

You can shut off all of the notifications being sent by Nagios XI by going to the Admin > Monitoring Engine Status menu in the GUI and clicking the X next to the Notifications setting in the Monitoring Engine Process dashlet.
Stop Notifications until the system catches up and then re-enable it.
Then go to the Admin > Manage Email Settings menu, if the Mail Method is set to SMTP, then someone would have to login to that server to flush the rest of the emails.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked