Email Notifications is not working

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
deemac
Posts: 3
Joined: Wed Mar 02, 2016 11:46 am

Email Notifications is not working

Post by deemac »

Email Notifications are not going through all of the sudden. The current version of Nagios Core i'm using is version 3.5.1 (older version ). i noticed an old post few years back with similar issue but it was eventually resolved. im wondering if someone can explain to me the resolution steps solving this issue.

https://support.nagios.com/forum/viewto ... =7&t=30994
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Email Notifications is not working

Post by mbellerue »

It looks like that person had issues with their notification command, as well as their Postfix configuration.

Here are some relevant links on the Postfix issue.
http://www.postfix.org/ADDRESS_REWRITING_README.html
https://www.cyberciti.biz/tips/howto-po ... dress.html

But the issue of email just not getting sent out seems pretty broad. It might be worth doing some additional troubleshooting before jumping into the deep end with Postfix. When an email should be sent out, do you see anything in the system's mail log, or system log?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deemac
Posts: 3
Joined: Wed Mar 02, 2016 11:46 am

Re: Email Notifications is not working

Post by deemac »

I did some testing using Postfix own sendmail setup. I was able to received the email with no issue. However, when i try to trigger a downtime within Nagios I noticed the maillog file with the following info "to=<[email protected]>" and "from=<[email protected]>" which will explain why i am not receiving these notifications. How do i change the from address?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Email Notifications is not working

Post by mbellerue »

If this is for an Icinga system, your best bet would be to run this issue past their support.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
deemac
Posts: 3
Joined: Wed Mar 02, 2016 11:46 am

Re: Email Notifications is not working

Post by deemac »

from maillog...

Oct 22 08:56:05 nagios-01 postfix/pickup[114943]: D5BC0C447B: uid=496 from=<icinga>
Oct 22 08:56:05 nagios-01 postfix/cleanup[8078]: D5BC0C447B: message-id=<[email protected]>
Oct 22 08:56:05 nagios-01 postfix/qmgr[94257]: D5BC0C447B: from=<[email protected]>, size=790, nrcpt=1 (queue active)
Oct 22 08:56:05 nagios-01 postfix/smtp[8080]: D5BC0C447B: to=<[email protected]>, orig_to=<icinga@localhost>, relay=FQDN.SMTP[x.x.x.x][/color][/color]:25, delay=0.11, delays=0.05/0.01/0/0.04, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)
Oct 22 08:56:05 nagios-01 postfix/qmgr[94257]: D5BC0C447B: removed
Oct 22 09:00:04 nagios-01 postfix/pickup[114943]: 5CE71C447B: uid=0 from=<root>
Oct 22 09:00:04 nagios-01 postfix/cleanup[8762]: 5CE71C447B: message-id=<[email protected]>
Oct 22 09:00:04 nagios-01 postfix/qmgr[94257]: 5CE71C447B: from=<[email protected]>, size=732, nrcpt=1 (queue active)
Oct 22 09:00:04 nagios-01 postfix/smtp[8764]: 5CE71C447B: to=<[email protected]>, orig_to=<root>, relay=FQDN.SMTP[x.x.x.x]:25, delay=2.5, delays=2.4/0.01/0/0.05, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> Queued mail for delivery)
Oct 22 09:00:04 nagios-01 postfix/qmgr[94257]: 5CE71C447B: removed
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Email Notifications is not working

Post by mbellerue »

I'm sorry, we cannot help with icinga servers.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked