Page 1 of 1

Mail Notification

Posted: Fri May 24, 2019 8:35 pm
by orani
Hello,

i have mail notification enabled at my nagios server. The last few hours i am receiving too many mails for problems from past days (i.e. 4 or 18 of May)

Can i check if the are queued mails somewhere?

Is there any other suggestions?

Re: Mail Notification

Posted: Mon May 27, 2019 12:54 pm
by dwhitfield
What MTA are you using? If you are using postfix or sendmail, if you do a web search for 'mail queue' without the quotes then you will see results.

I have not kept up with the newest features, so someone from support can correct me, but I do not believe Nagios itself does any actual queuing.

Re: Mail Notification

Posted: Tue May 28, 2019 1:05 am
by orani
I am using mail agent but i dont see any queues at linux.

Re: Mail Notification

Posted: Tue May 28, 2019 8:05 am
by dwhitfield
I see you posted on the 24th (my time). Are you still getting too many emails?

Re: Mail Notification

Posted: Tue May 28, 2019 8:30 am
by orani
No... now i receive mails as normal but when i first posted and also some days before that there was two bursts of 5K-6K mails in a few minutes.

Re: Mail Notification

Posted: Tue May 28, 2019 2:12 pm
by jomann
Hello orani,

You may want to check out the notification_interval for hosts/services in the object defitions (https://assets.nagios.com/downloads/nag ... ml#service) and verify that you are not having it re-send emails rapidly.

As for the queue issue, as @dwhitfield mentioned, it depends on if you're using postfix or sendmail. He is correct that we do not do any mail queuing we just send it off with the mail function to get mailed.

Re: Mail Notification

Posted: Wed May 29, 2019 7:35 am
by orani
I have notification interval set to 0. The problem was that the warning and critical threshold of some service checks was set at the point of real working threshold, so it was changing form ok to warning too often.

So now it is ok.

Re: Mail Notification

Posted: Wed May 29, 2019 12:09 pm
by scottwilkerson
orani wrote:So now it is ok.
Great!

Glad to hear it is resolved.

Locking thread