Contacts not Reciving Email Alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
thomasarts
Posts: 4
Joined: Tue Mar 24, 2015 3:37 pm

Contacts not Reciving Email Alerts

Post 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.
You do not have the required permissions to view the files attached to this post.
thomasarts
Posts: 4
Joined: Tue Mar 24, 2015 3:37 pm

Re: Contacts not Reciving Email Alerts

Post by thomasarts »

Also the screen shot of the host in question
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Contacts not Reciving Email Alerts

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
thomasarts
Posts: 4
Joined: Tue Mar 24, 2015 3:37 pm

Re: Contacts not Reciving Email Alerts

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Contacts not Reciving Email Alerts

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
thomasarts
Posts: 4
Joined: Tue Mar 24, 2015 3:37 pm

Re: Contacts not Reciving Email Alerts

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Contacts not Reciving Email Alerts

Post 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
Former Nagios Employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Contacts not Reciving Email Alerts

Post by Box293 »

Once you add a contact or contactgroup at a service level, the inheritance from the host is completely ignored.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Contacts not Reciving Email Alerts

Post 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
Nagios XI 5.8.1
https://outsideit.net
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Contacts not Reciving Email Alerts

Post 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?
Locked