Page 1 of 1

Cannot set Same Host Dependencies With Servicegroups

Posted: Mon Jun 01, 2020 3:06 pm
by dariopalermo
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

Re: Cannot set Same Host Dependencies With Servicegroups

Posted: Tue Jun 02, 2020 3:00 pm
by cdienger
Static configuration could be used to work around this. https://assets.nagios.com/downloads/nag ... ios-XI.pdf steps through setting up a static config.

Re: Cannot set Same Host Dependencies With Servicegroups

Posted: Wed Jun 03, 2020 2:18 pm
by dariopalermo
Yes, I know and already set that up to get my system working as required.

Do you realize, however, that we bought Nagiox XI to have ADDED value and not to have to resort to static configs for some basic functions, right?

Static configs are for Core, in XI they can easily create unpredicted results and are difficult to mantain. Very disappointed so far with XI, honestly.

Bye, Dario

Re: Cannot set Same Host Dependencies With Servicegroups

Posted: Thu Jun 04, 2020 10:05 am
by cdienger
I'll file a feature request for this improvement with our dev team.