Page 1 of 1

email notification not sending all of a sudden

Posted: Tue Apr 24, 2012 9:16 am
by chewy
I have Nagios core 3.3.1 installed and email notifications had always been working right from the start with not special setup. Recently I noticed that emails are not being sent. I dont know what might have changed. I would like to eliminate the nagios box as the issue if possible. Could anyone lead me to what I can try to find out where the issue lies.
thanks!

Re: email notification not sending all of a sudden

Posted: Tue Apr 24, 2012 10:29 am
by lmiltchev
Check your main config file first and see if you have:

Code: Select all

enable_notifications=1

Re: email notification not sending all of a sudden

Posted: Tue Apr 24, 2012 10:53 am
by chewy
it is enabled

Re: email notification not sending all of a sudden

Posted: Tue Apr 24, 2012 11:52 am
by lmiltchev
You can see if all of the filters are passed in order for the alerts to be sent:

http://nagios.sourceforge.net/docs/nagi ... tions.html

You can also check if sendmail is working fine. Create a test file somewhere and e-mail it to a good known e-mail address, for example, you can run in terminal:

Code: Select all

/usr/lib/sendmail -v <your_e-mail> < /tmp/test.txt
You can also double check your spam folder :)

Hope this helps.

Re: email notification not sending all of a sudden

Posted: Tue Apr 24, 2012 1:04 pm
by chewy
I must be missing something I go to send a test email and it said "mail delivery status report will be mailed to <root>.

lmiltchev wrote:You can see if all of the filters are passed in order for the alerts to be sent:

http://nagios.sourceforge.net/docs/nagi ... tions.html

You can also check if sendmail is working fine. Create a test file somewhere and e-mail it to a good known e-mail address, for example, you can run in terminal:

Code: Select all

/usr/lib/sendmail -v <your_e-mail> < /tmp/test.txt
You can also double check your spam folder :)

Hope this helps.

Re: email notification not sending all of a sudden

Posted: Tue Apr 24, 2012 2:15 pm
by lmiltchev
Check the root mail - it may help you troubleshoot the issue:

Code: Select all

cat /var/spool/mail/root