Page 1 of 1

Not receiving notification emails

Posted: Thu Jun 05, 2014 2:08 am
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.

Re: Not receiving notification emails

Posted: Thu Jun 05, 2014 6:17 am
by Stuart Watts
What does /var/log/maillog show at the time Nagios tries to send notifications?

Re: Not receiving notification emails

Posted: Thu Jun 05, 2014 2:40 pm
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.

Re: Not receiving notification emails

Posted: Mon Jun 16, 2014 3:22 am
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.

Re: Not receiving notification emails

Posted: Mon Jun 16, 2014 2:00 pm
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?

Re: Not receiving notification emails

Posted: Wed Jun 18, 2014 1:39 am
by tariqondego
Yes this is all it says,same for the archived logs.
Please see attached and advise.

Re: Not receiving notification emails

Posted: Wed Jun 18, 2014 11:45 am
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/

Re: Not receiving notification emails

Posted: Mon Jul 14, 2014 5:36 am
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.

Re: Not receiving notification emails

Posted: Mon Jul 14, 2014 11:50 am
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

Re: Not receiving notification emails

Posted: Fri Aug 29, 2014 1:45 am
by tariqondego
Reconfigured exim4,its now ok.