Service Dependencies with Inheritance

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Service Dependencies with Inheritance

Post 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.
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service Dependencies with Inheritance

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Service Dependencies with Inheritance

Post 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.....
Mike Weber

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Dependencies with Inheritance

Post by lmiltchev »

Mike, we will do some digging and see if we can recreate the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Service Dependencies with Inheritance

Post 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.
Mike Weber

Nagios Training/Consulting
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Service Dependencies with Inheritance

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
mikew
Posts: 243
Joined: Sun Feb 05, 2012 7:05 pm

Re: Service Dependencies with Inheritance

Post 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.
Mike Weber

Nagios Training/Consulting
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Dependencies with Inheritance

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked