I thought I had posted this earlier, but I'll try again.
I have seen this problem. Every time it is the result of the queue length in the SMTP server being set to 15 minutes to an hour. Since you say it is 5 - 15 minutes, it looks like it is set to 15 minutes on the smtp server.
If the smtp server is running Sendmail, run sendmail -q on it and see if that gets you an immediate email. If so, the bottleneck is not nagios but your smtp server.
Email delay in delivery from Nagios Server
-
ChathamDaleJ
- Posts: 55
- Joined: Tue Jul 02, 2013 10:44 am
Re: Email delay in delivery from Nagios Server
@cusvenus
Thanks for the log. However, it doesn't help a lot without knowing when the Nagios XI server is sending out email. You should compare timestamps.
@ChathamDaleJ
Thank you for the suggestion. OP, can you please look into this point?
Thanks for the log. However, it doesn't help a lot without knowing when the Nagios XI server is sending out email. You should compare timestamps.
@ChathamDaleJ
Thank you for the suggestion. OP, can you please look into this point?
Former Nagios Employee.
me.
me.
Re: Email delay in delivery from Nagios Server
Guys,
Can we check this. Now the emails are delayed and issue is getting noticed. Please help - Thanks
Can we check this. Now the emails are delayed and issue is getting noticed. Please help - Thanks
Re: Email delay in delivery from Nagios Server
Can you go in to Nagios XI's notifications and screen capture the notification that you are having issue with?
Also, we need you to post the received email with the full headers displayed.
Thanks
Also, we need you to post the received email with the full headers displayed.
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Email delay in delivery from Nagios Server
Can you provide us the logs from your Nagios XI system, so that we can compare the timestamps? /usr/local/nagios/var/nagios.log - this will show when they are fired on the Nagios XI system.
We will also need to see the corresponding logs with time stamps from your SMTP server. Please post those as well.
Also, please take a look at @ChathamDaleJ's response -
We will also need to see the corresponding logs with time stamps from your SMTP server. Please post those as well.
Also, please take a look at @ChathamDaleJ's response -
I have seen this problem. Every time it is the result of the queue length in the SMTP server being set to 15 minutes to an hour. Since you say it is 5 - 15 minutes, it looks like it is set to 15 minutes on the smtp server.
If the smtp server is running Sendmail, run sendmail -q on it and see if that gets you an immediate email. If so, the bottleneck is not nagios but your smtp server.
Former Nagios Employee
Re: Email delay in delivery from Nagios Server
In addition to trgiep's response, are you relaying through Exchange? A mail gateway? Postfix/Sendmail? Other?
Re: Email delay in delivery from Nagios Server
Can I email you the log or do I have to attach here?
Re: Email delay in delivery from Nagios Server
Feel free to PM it to any one of us, and post back here once you have.
Former Nagios Employee