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
Not recieving notification emails on one address
Re: Not recieving notification emails on one address
You may want to check the Nagios XI user OpsSupport's notification preferences:
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.
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.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Not recieving notification emails on one address
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.
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.
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.
Code: Select all
/var/log/maillogCode: Select all
/usr/local/nagiosxi/tmp/phpmailer.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Not recieving notification emails on one address
Thanks for the suggestion, but OpsSupport is just a Contact, not a User.mcapra wrote:You may want to check the Nagios XI user OpsSupport's notification preferences:
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
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.
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
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% 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
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
https://assets.nagios.com/downloads/nag ... Mailer.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Not recieving notification emails on one address
Thank you, this solved the problem.tgriep wrote: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
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!