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.
Service Dependencies with Inheritance
Service Dependencies with Inheritance
Mike Weber
Nagios Training/Consulting
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
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
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
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
Nagios Training/Consulting
Re: Service Dependencies with Inheritance
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!
Re: Service Dependencies with Inheritance
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
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
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
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
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.
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
Nagios Training/Consulting
Re: Service Dependencies with Inheritance
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:
Can you walk us through all of the steps you took to set up the service dependencies via the CCM?
Code: Select all
host_name <hostname>
dependent_host_name <dependent hostname>Be sure to check out our Knowledgebase for helpful articles and solutions!