Cannot set Same Host Dependencies With Servicegroups
Posted: Mon Jun 01, 2020 3:06 pm
On Nagios XI, I'm trying to get some basic dependencies. I'm checking ncpalistener via WMI and then I want to set all NCPA checks to be dependent on the service. I know I did it on Nagios Core some years ago and it was pretty straightforward...
https://assets.nagios.com/downloads/nag ... dependency
Same Host Dependencies With Servicegroups:
If you want to create service dependencies for all services that belong in one or more servicegroups on a service on the same host running the dependent service, leave the host_name and hostgroup_name directives empty. The example below assumes that hosts running services that belong in SERVICEGROUP1 and SERVICEGROUP2 have the following service associated with them: SERVICE1. In this example, all services that belong in GROUPSERVICE1 and SERVICEGROUP2 will be dependent on SERVICE1 on the same host running the dependent service.
define servicedependency{
service_description SERVICE1
dependent_servicegroup_name SERVICEGROUP1,SERVICEGROUP2
other dependency directives ...
}
However, Nagios XI will not let me save the config giving errors if I do not select an host (or hostgroup), a dependent host (or hostgroup) and even if I select the dependent service group and no dependent service!
How so?
bye, Dario
https://assets.nagios.com/downloads/nag ... dependency
Same Host Dependencies With Servicegroups:
If you want to create service dependencies for all services that belong in one or more servicegroups on a service on the same host running the dependent service, leave the host_name and hostgroup_name directives empty. The example below assumes that hosts running services that belong in SERVICEGROUP1 and SERVICEGROUP2 have the following service associated with them: SERVICE1. In this example, all services that belong in GROUPSERVICE1 and SERVICEGROUP2 will be dependent on SERVICE1 on the same host running the dependent service.
define servicedependency{
service_description SERVICE1
dependent_servicegroup_name SERVICEGROUP1,SERVICEGROUP2
other dependency directives ...
}
However, Nagios XI will not let me save the config giving errors if I do not select an host (or hostgroup), a dependent host (or hostgroup) and even if I select the dependent service group and no dependent service!
How so?
bye, Dario