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
Clear Emails
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Clear Emails
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.
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.
Re: Clear Emails
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
[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
Re: Clear Emails
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.
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!