Page 1 of 1

Service Alarm - Parent/Child

Posted: Wed Jul 24, 2019 9:26 am
by Pradeeps
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.

Re: Service Alarm - Parent/Child

Posted: Thu Jul 25, 2019 4:17 pm
by benjaminsmith
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.

Code: Select all

host_down_disable_service_checks=1
This will help disable notifications from services when the host is down without requiring setting up dependencies.

See: Nagios XI - Service Dependencies

Re: Service Alarm - Parent/Child

Posted: Fri Jul 26, 2019 7:25 pm
by Pradeeps
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.

Re: Service Alarm - Parent/Child

Posted: Mon Jul 29, 2019 9:11 am
by benjaminsmith
Hello @Pradeeps,
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.
Your welcome. Let us know if you have further questions.

Re: Service Alarm - Parent/Child

Posted: Mon Jul 29, 2019 9:26 am
by Pradeeps
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?

Re: Service Alarm - Parent/Child

Posted: Tue Jul 30, 2019 4:15 pm
by benjaminsmith
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.