Hi Folks,
I am running on Nagios-core 4.2.4 version on centos 7.
I have 1000s hosts configured in a parent/child relationship and I disabled "UNREACHABLE" notification from the contact so that if a parent host is down, there wont be any notification sent from its child. So far this setup works great, however, the services of the child hosts do send notifications. I know we can configure service dependency for each host but we have 1000s of host and doing it individually will take forever. Is there any other solution to achieve this?
Thanks in advance.
Service Alarm - Parent/Child
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Service Alarm - Parent/Child
Hi @Pradeeps,
Service dependencies are the best tool to handle this ( and it's certainly easier to setup in Nagios XI). However, there is an option in the Nagios configuration file ( /usr/local/nagios/etc ) that will disable service checks when the host is down.
This will help disable notifications from services when the host is down without requiring setting up dependencies.
See: Nagios XI - Service Dependencies
Service dependencies are the best tool to handle this ( and it's certainly easier to setup in Nagios XI). However, there is an option in the Nagios configuration file ( /usr/local/nagios/etc ) that will disable service checks when the host is down.
Code: Select all
host_down_disable_service_checks=1
See: Nagios XI - Service Dependencies
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Service Alarm - Parent/Child
Thanks for your response. The option you said looks like exactly what i am hoping to achieve. I will test it out right away. Thanks a lot.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Service Alarm - Parent/Child
Hello @Pradeeps,
Your welcome. Let us know if you have further questions.Thanks for your response. The option you said looks like exactly what i am hoping to achieve. I will test it out right away. Thanks a lot.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Service Alarm - Parent/Child
I am noticing for some services, its not triggering any notification when the host is down however it does when i stopped the nrpe daemon. I didnt make any changes to the "host_down_disable_service_checks" and i even checked its set to "0" at the moment. Is it possible that some other setting is contributing this behavior?
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Service Alarm - Parent/Child
Hello @Pradeeps,
I would recommend upgrading to the latest version of Core, we did have some notification related bugs in 4.24 that have been fixed.
I would recommend upgrading to the latest version of Core, we did have some notification related bugs in 4.24 that have been fixed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!