Page 1 of 1

Service Dependencies with Inheritance

Posted: Thu Sep 19, 2013 7:12 am
by mikew
Service Dependencies with Inheritance
In this example, there are three layers of monitoring. Nagios is monitoring linux_01 using NRPE using a direct NRPE check. In addition, linux_01 is monitoring linux_02 using SNMP and monitoring cpu usage. This SNMP monitoring is an indirect check using NRPE. Three layers NRPE/SNMP/CPU. In trying to create the servicedependencies for both, the necessary design is to add a dependent host.

However, any time that a dependent host is added in XI it fails and the result is what you see below. In addition, regardless if the inherits_parent setting is clicked or not it is added in the config, see below.

define servicedependency {
service_description / Disk Usage,CPU Stats,Load,Memory
inherits_parent 1
execution_failure_criteria u,c,
notification_failure_criteria u,c,
dependency_period 24x7

}
define servicedependency {
service_description CPU
inherits_parent 1
execution_failure_criteria u,c,
notification_failure_criteria u,c,
dependency_period 24x7

}

The question is, is dependency inheritance working correctly in this wizard as I have tried a number of times to make changes but to no avail. If the dependent host setting cannot be added, then dependency inheritance will not work as there is no way to represent the 3 layers.

It is possible that I am missing something ...wouldn't be the first time.

Re: Service Dependencies with Inheritance

Posted: Fri Sep 20, 2013 8:39 am
by scottwilkerson
The most notable thing I see is that you do not have host_name or dependent_host_name in either of your configs..

Also, the inherit parents doesn't deal with hosts at all, it is described as follows
This directive indicates whether or not the dependency inherits dependencies of the service that is being depended upon (also referred to as the master service). In other words, if the master service is dependent upon other services and any one of those dependencies fail, this dependency will also fail.

Re: Service Dependencies with Inheritance

Posted: Fri Sep 20, 2013 12:58 pm
by mikew
That is my point, they cannot be added...Nagios will not restart with them added by web interface. The only way to add them is to create a static file.....

Re: Service Dependencies with Inheritance

Posted: Fri Sep 20, 2013 3:21 pm
by lmiltchev
Mike, we will do some digging and see if we can recreate the issue.

Re: Service Dependencies with Inheritance

Posted: Sat Sep 21, 2013 7:28 am
by mikew
I have reproduced this outcome with another major company that also has resorted to the static directory for the changes. The problem with the static directory is that though the settings function, it remains a hidden factor to administrators making changes as they tend not to be aware of the settings and with these service dependencies it can have some unwanted consequences. Thanks...for looking into it.

Re: Service Dependencies with Inheritance

Posted: Sat Sep 21, 2013 8:08 am
by scottwilkerson
To clarify for our testing, what version of XI are you using, and what browser and version are you using.

I have tested setting up dependencies in my environment and it is working as expected through the CCM.
2012R2.3
Firefox 23.0.1

Re: Service Dependencies with Inheritance

Posted: Sat Sep 21, 2013 10:45 am
by mikew
First, to clarify, the problem I see is service dependencies with inheritance and the ability to add host_name or dependent_host_name without causing an error.

I am testing on 2012R2.2 using Chrome on a Linux Machine and Firefox on Windows. This has also been duplicated on a students network with multiple Windows machines and browsers. I just tested on 2012R2.3 with Chrome and it failed also.

Re: Service Dependencies with Inheritance

Posted: Mon Sep 23, 2013 10:01 am
by lmiltchev
Mike, what are the buttons that you click under the "Service Dependency Management" in the CCM? Clicking on "Manage Hosts" and "Manage Dependent Hosts" should add the following lines:

Code: Select all

host_name <hostname>
dependent_host_name <dependent hostname>
Can you walk us through all of the steps you took to set up the service dependencies via the CCM?