Not receiving notification emails

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
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Not receiving notification emails

Post by tariqondego »

I am not receiving notification emails,even though I have set this up for hosts.The nagios.logs show notification being sent but I am not getting the mails.
Please advise.
Stuart Watts
Posts: 40
Joined: Wed Sep 25, 2013 7:01 am

Re: Not receiving notification emails

Post by Stuart Watts »

What does /var/log/maillog show at the time Nagios tries to send notifications?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Not receiving notification emails

Post by sreinhardt »

Thanks stuart, that is a great question, as core generally will use the local mailer, that should push email sent to the maillog as well.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Not receiving notification emails

Post by tariqondego »

This is what mailog says:
nagios exim4: ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken.

Please advise.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Not receiving notification emails

Post by slansing »

Is that all it says? Just one line in your current maillog? If so, do you have anything in the archived maillogs in the same directory?
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Not receiving notification emails

Post by tariqondego »

Yes this is all it says,same for the archived logs.
Please see attached and advise.
Attachments
maillog.zip
(1.09 KiB) Downloaded 181 times
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not receiving notification emails

Post by tmcdonald »

I'm assuming this is on a Debian/Ubuntu system? If so, I'd take a look at these two posts:

http://blog.rebelit.net/67
http://linuxindetails.wordpress.com/201 ... ly-broken/
Former Nagios employee
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Not receiving notification emails

Post by tariqondego »

Thanks @tmcdonald for those helpfull posts.The mail.log is clear now.
But still,when I do a testmail its still unsuccesful,and the maillog remains empty.
See testmail below:

Code: Select all

root@nagios:~# mail -v [email protected]
Subject: ola
this is a test ola!!
Cc: 
LOG: MAIN
  <= [email protected] U=root P=local S=384
root@nagios:~# delivering 1X6dGZ-0006iC-WC
R: nonlocal for [email protected]
LOG: MAIN
  ** [email protected] R=nonlocal: Mailing to remote domains not supported
LOG: MAIN
  <= <> R=1X6dGZ-0006iC-WC U=Debian-exim P=local S=1257
delivering 1X6dGa-0006iG-3i
LOG: MAIN
  Completed
R: system_aliases for [email protected]
R: userforward for [email protected]
R: procmail for [email protected]
R: maildrop for [email protected]
R: lowuid_aliases for [email protected] (UID 0)
R: mail4root for [email protected]
T: address_file for [email protected]
LOG: MAIN
  => /var/mail/mail <[email protected]> R=mail4root T=address_file
LOG: MAIN
  Completed
please advise.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not receiving notification emails

Post by tmcdonald »

Code: Select all

  ** [email protected] R=nonlocal: Mailing to remote domains not supported
There's your problem. You must configure the system to allow sending to remote addresses:

http://superuser.com/questions/384499/h ... il-command
Former Nagios employee
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Not receiving notification emails

Post by tariqondego »

Reconfigured exim4,its now ok.
Locked