Not receiving notification emails
-
tariqondego
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Not receiving notification emails
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.
Please advise.
-
Stuart Watts
- Posts: 40
- Joined: Wed Sep 25, 2013 7:01 am
Re: Not receiving notification emails
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
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
This is what mailog says:
nagios exim4: ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken.
Please advise.
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
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
Yes this is all it says,same for the archived logs.
Please see attached and advise.
Please see attached and advise.
- Attachments
-
- maillog.zip
- (1.09 KiB) Downloaded 182 times
Re: Not receiving notification emails
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/
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
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:
please advise.
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
Re: Not receiving notification emails
There's your problem. You must configure the system to allow sending to remote addresses:Code: Select all
** [email protected] R=nonlocal: Mailing to remote domains not supported
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
Reconfigured exim4,its now ok.