Service Dependencies stopped working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
uidaho
Posts: 89
Joined: Tue Feb 12, 2013 11:58 am

Service Dependencies stopped working

Post by uidaho »

We have a service dependency set up with the following configuration (/usr/local/nagios/etc/static/nsclient-servicedependencies.cfg):

define servicedependency{
service_description State - NSClientPP win
dependent_servicegroup_name All_Windows_Services_Dependent_On_NSCLIENT_DSG
execution_failure_criteria p,c,u,w
notification_failure_criteria p,c,u,w

Recently we observed that when the service "State - NSClientPP" goes down on a host, notifications are also being sent on services that are members of "All_Windows_Services_Dependent_On_NSCLIENT_DSG". We created a static configuration file. We were unable to create the dependencies through the GUI, because we are using service groups. In the past, notifications for these services depending on NSClient were suppressed when NSClient went down, so something has changed.

We could use some help in making the dependency work again. We are currently at Nagios XI 2014R1.4.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Service Dependencies stopped working

Post by Box293 »

This has been identified as a bug in Core 4.0.8.

Here's a forum post that covers it:
http://support.nagios.com/forum/viewtop ... 05#p112159

Here's the issue on GitHub:
https://github.com/NagiosEnterprises/na ... /issues/19
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
uidaho
Posts: 89
Joined: Tue Feb 12, 2013 11:58 am

Re: Service Dependencies stopped working

Post by uidaho »

Thanks for the reply. We hadn't even thought to look for a Core bug. We heavily use servicegroups to suppress notifications for services depend on NRPE/NSCLIENT services. This is a rough bug for us!

Does anyone here know if that bug is being actively worked on? Would creating a ticket with XI Support help prompt a quicker resolution?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Service Dependencies stopped working

Post by tmcdonald »

I spoke with our Core dev and, I hate to say it, this is not currently being worked on. Opening a ticket would not speed that process up in this case.

However, there was a workaround posted in the linked thread that might help in the meantime:
Box293 wrote: Annoying as it is, specify the individual hosts in the service dependency using the host_name directive. When this is done the service dependency works as expected.
Former Nagios employee
uidaho
Posts: 89
Joined: Tue Feb 12, 2013 11:58 am

Re: Service Dependencies stopped working

Post by uidaho »

I'll create a ticket. I'd really like to avoid setting a host for every dependency. Not every host has the same set of services, so we'd basically need a dependency rule per host!

Do you know if "service parents" works in core 4? I saw there was another forum post about it not working, six months ago. I realize that option is not available through XI interface, but I'm hoping I could use a static config to make it work...

http://nagios.sourceforge.net/docs/nagi ... tsnew.html

" Services now support a parents attribute. A service parent performs a function similar to host parents and can be used in place of service dependencies in simple circumstances. "
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Service Dependencies stopped working

Post by abrist »

uidaho wrote:Do you know if "service parents" works in core 4?
It should. The option has been around for a while and we have not heard of any bugs associated with it.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked