email notification not sending all of a sudden

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chewy
Posts: 6
Joined: Tue Apr 24, 2012 9:13 am

email notification not sending all of a sudden

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: email notification not sending all of a sudden

Post by lmiltchev »

Check your main config file first and see if you have:

Code: Select all

enable_notifications=1
Be sure to check out our Knowledgebase for helpful articles and solutions!
chewy
Posts: 6
Joined: Tue Apr 24, 2012 9:13 am

Re: email notification not sending all of a sudden

Post by chewy »

it is enabled
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: email notification not sending all of a sudden

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
chewy
Posts: 6
Joined: Tue Apr 24, 2012 9:13 am

Re: email notification not sending all of a sudden

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: email notification not sending all of a sudden

Post by lmiltchev »

Check the root mail - it may help you troubleshoot the issue:

Code: Select all

cat /var/spool/mail/root
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked