Page 1 of 1
Contacts not Reciving Email Alerts
Posted: Tue Oct 25, 2016 3:32 pm
by thomasarts
I am having numerous problems trying to get alerts to go to the correct email accounts. Added a new contact and listing that contact under the host Alert settings for a host and all related services will not result in that contact getting email alerts. I am able to test send emails via nagios email config section to our new contact and other users are able to get email alerts so I do not believe this is caused by an error in our email setup or with our email server.
Even when I replace my email address in the contact section with the new email address that should be getting alerts, then save and apply the config. I still receive alerts and the new email address will not. The config files reflect the all of the changes I have made so there doesn't seem to be an issue in applying configuration.
I am running nagios on Centos7 that was installed via RPM. I'm not sure what config information I need to include along with this post to help work on this issue.
Re: Contacts not Reciving Email Alerts
Posted: Tue Oct 25, 2016 4:02 pm
by thomasarts
Also the screen shot of the host in question
Re: Contacts not Reciving Email Alerts
Posted: Tue Oct 25, 2016 4:31 pm
by Box293
Did you create these contacts manually through CCM or were they created when creating a Nagios XI user account?
Nagios XI extends the notification capabilities of Nagios Core, and because of this it requires that contacts objects get created when creating users through Admin > Users > Manage Users.
Any notification preferences should be defined while logged on as that user by clicking on their name in the top right corner. You can use the masquerade icon (eyeball) to log in as that user.
Here is a document that explains the XI Contact relationship:
https://support.nagios.com/kb/article.php?id=136
Does this help?
Re: Contacts not Reciving Email Alerts
Posted: Tue Oct 25, 2016 6:14 pm
by thomasarts
I did originally create them simply be creating a new contact. If contacts do not work by themselves what is their purpose?
I deleted the contact then created a new user and added it to the notifications for the specific host and triggered an alert. I did get am email from nagios with the new info from the new user. However I still don't seem to be getting email alerts. When I masquerade as that user email alerts appears to be on under notification options and I was able to get get a test notification.
Re: Contacts not Reciving Email Alerts
Posted: Tue Oct 25, 2016 10:02 pm
by Box293
thomasarts wrote:I did originally create them simply be creating a new contact. If contacts do not work by themselves what is their purpose?
They do work, just not out of the box with the way XI is designed, it's just easiest to create a user and let Nagios create the contact object.
thomasarts wrote:I deleted the contact then created a new user and added it to the notifications for the specific host and triggered an alert. I did get am email from nagios with the new info from the new user. However I still don't seem to be getting email alerts. When I masquerade as that user email alerts appears to be on under notification options and I was able to get get a test notification.
Did you apply configuration after making these changes?
Can you go to Home > Host Detail > the host you added the contact to
Click the Advanced tab
Click Send custom notification
Does the user receive this email?
Can you go to CCM and find the contact
Click the disk icon
You'll be shown the text config
Paste the text config here
Please do the same for the host object
Re: Contacts not Reciving Email Alerts
Posted: Wed Oct 26, 2016 4:00 pm
by thomasarts
Ok it appears I had to go in and re-apply the config and also add in that contact into all of the services for that host as well. Is there any way to have the contacts for each service get inherited from the host? It seems like it pushes out the setup contact list to each service on creation of the host, but not on update.
Re: Contacts not Reciving Email Alerts
Posted: Wed Oct 26, 2016 4:06 pm
by rkennedy
thomasarts wrote:Ok it appears I had to go in and re-apply the config and also add in that contact into all of the services for that host as well. Is there any way to have the contacts for each service get inherited from the host? It seems like it pushes out the setup contact list to each service on creation of the host, but not on update.
If you do not specify a contact or contactgroup at a service level, then it will inherit it through the host. See this page for more of an explanation (look for Implied Inheritance) -
https://assets.nagios.com/downloads/nag ... tance.html
Re: Contacts not Reciving Email Alerts
Posted: Wed Oct 26, 2016 4:55 pm
by Box293
Once you add a contact or contactgroup at a service level, the inheritance from the host is completely ignored.
Re: Contacts not Reciving Email Alerts
Posted: Fri Oct 28, 2016 12:12 pm
by WillemDH
Correctly, thats why we set a dummy contactgroup at every service and host. Contactgroups are then inherited from the template instead of the host. grtz
Re: Contacts not Reciving Email Alerts
Posted: Fri Oct 28, 2016 1:22 pm
by dwhitfield
@thomasarts, are you still having issues? We haven't from you for ~2 days. If resolved, is it ok if we lock the thread?