Service Dependencies with Inheritance
Posted: Thu Sep 19, 2013 7:12 am
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.
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.