Host notification issue
Host notification issue
Hi,
I am facing a strange issue with notification. I am using Nagios XI and I am not getting notification for services those get added with host by default(like memory/swap/load etc) but notification for services those i added under same host later are coming properly.
I am facing a strange issue with notification. I am using Nagios XI and I am not getting notification for services those get added with host by default(like memory/swap/load etc) but notification for services those i added under same host later are coming properly.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host notification issue
Services don't get added to any host by default, but if you have hostgroups attached to a service, then they would be automatically added.dkumar wrote:I am using Nagios XI and I am not getting notification for services those get added with host by default(like memory/swap/load etc)
You are going to want to find these services in the CCM that have the hostgroup assigned and then modify those service configs to add the contacts you want to receive notifications to that.
Re: Host notification issue
Thanks for clarification. I got these services in CCM but the problem is, same service is added under different hosts. Due to this I don't want to add any contact or contact group under these services directly. Different hosts need to send alert to different set of users. Therefor I have added contact and contact groups to host under CCM instead of services. Now for same host alerts for some services are going properly but for some its not coming.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host notification issue
Do you have any contact or contact groups assigned to these services if so they would override any inheritance from the hosts?
Re: Host notification issue
No Contact or contact group is assigned to these services. Its assigned to hosts only.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host notification issue
Could you share one of these service configurations along with any attached templates?
Re: Host notification issue
I have send the attachement on PM. I hope this is what you want. Let me know if you need something different. thanks.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host notification issue
The services have a template of local-service attached, could you send that as well
thanks
thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host notification issue
So as we dug through this, one of the underlying templates attached to the service has the following:
If a contact group is assigned to a service either directly or attached with a template, the contact_group inheritance from the host will not work.
See the "Implied Inheritance" section here
https://assets.nagios.com/downloads/nag ... tance.html
Code: Select all
contact_groups nagiosadminsSee the "Implied Inheritance" section here
https://assets.nagios.com/downloads/nag ... tance.html
Re: Host notification issue
Thanks. This has resolved my issue. You can close this.