Page 1 of 1
Not recieving notification emails on one address
Posted: Tue Jul 11, 2017 6:37 am
by caf_infra
Hi,
We have an issue where our Nagios Xi installation (5.4.4) is set to notify two different sets of email addresses - a single address, opssuport, and a contact group, infrastructure.
The emails to the contacts contained in the contact group are received, but not the ones to the lone address. We know the mailbox is functional, as messages sent from other monitoring systems arrive in it.
I've tried sending a custom alert too using the Force option, and the result is the same - the Contact group receives the alert, but the single contact doesn't.
Looking at the logs, it appears that Nagios is trying to generate a message to the OpsSupport account, but it's not getting through. I'm not having any luck tracking down email logs - the only thing I found seemed to imply that no-emails should be being sent from that Nagios box, which is clearly not what's happening.
Any advice, or any other logs I can look for? We're running Nagios on CentOS 7.
Thanks,
Justine
Re: Not recieving notification emails on one address
Posted: Tue Jul 11, 2017 10:59 am
by mcapra
You may want to check the Nagios XI user OpsSupport's notification preferences:
2017_07_11_10_57_10_Account_Information_Nagios_XI.png
Pages 2 and 3 of this documentation describes the process:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
I would verify that the "OpsSupport" account first has "Enable notifications" checked, and has the appropriate types of notifications enabled.
If you do not believe the issue can be solved there, you may want to prepare a system profile for one of the technicians. A system profile can be gathered from the Nagios XI GUI via Admin -> System Profile -> Download Profile.
Re: Not recieving notification emails on one address
Posted: Tue Jul 11, 2017 11:48 am
by tgriep
Depending on how the Nagios XI server is setup to send emails, there are 2 different log files you need to look at.
If you go to the Admin > Manage Email Settings menu and look at the Mail Method settings.
If it is set to Sendmail, the following would be the log file to look at.
If the Mail Method is SMTP, you would look at this log file.
Code: Select all
/usr/local/nagiosxi/tmp/phpmailer.log
One thing to check is if the domain of the OpsSupport account is different from the other email address, it could be blocked by another email server and that it why it is not getting received.
Re: Not recieving notification emails on one address
Posted: Wed Jul 12, 2017 7:17 am
by caf_infra
mcapra wrote:You may want to check the Nagios XI user OpsSupport's notification preferences:
2017_07_11_10_57_10_Account_Information_Nagios_XI.png
Thanks for the suggestion, but OpsSupport is just a Contact, not a User.
Reading the rest of the stuff and having a look at the other options suggested by tgriep.
Thanks,
Justine
Re: Not recieving notification emails on one address
Posted: Wed Jul 12, 2017 8:30 am
by caf_infra
Hi,
Done some more checking.
We're using SMTP, and when I use the 'Send Custom Notification' setting for one of our hosts, no email is generated for the OpSupport user; the logging is very barebones, but we can see 7 emails (the number of users in our Infrastructure group) being generated rather than 8. However, checking the Notifications log in Nagios shows that it tries to generate a notification to the OpsSupport user.
Code: Select all
2017-07-12 13:44:40 livdcrds13 - No UP opssupport Nagios XI OK - 192.168.120.100: rta 0.253ms, lost 0%
It appears that the information is getting lost somewhere between Nagios creating a notification and the email getting generated.
I've also tried sending an email manually through our relay server to the OpsSupport address, which works.
Thanks,
Justine
Re: Not recieving notification emails on one address
Posted: Wed Jul 12, 2017 9:52 am
by tgriep
When using SMTP as the mail method and only a contact is used, another Notification Command has to be setup and used. Take a look at the link below for instructions on setting that up.
https://assets.nagios.com/downloads/nag ... Mailer.pdf
Re: Not recieving notification emails on one address
Posted: Thu Jul 13, 2017 4:16 am
by caf_infra
Thank you, this solved the problem.
Re: Not recieving notification emails on one address
Posted: Thu Jul 13, 2017 9:36 am
by tgriep
Your Welcome. I'll mark the post as solved and lock it. If you have any questions in the future, feel free to open a new post.