hostgroup_name name1, !name2 config test fails on name2
Posted: Wed Jul 13, 2016 3:02 pm
I've got a configuration that works as expected in Core 3.5.1
In one .cfg file, I define a host group, call it name2.
in another .cfg file, I define a service with hostgroup_name name1, !name2
Indeed, the service is only defined for hosts in hostgroup name1 but not for hosts in hostgroup name2.
But under core 4.1.1, same configuration files, I get an error on that 2nd file, saying name2 could not be found.
I tried rearranging the order of specification of the separate configuration files in nagios.cfg, but no evident change.
Thoughts?
In one .cfg file, I define a host group, call it name2.
in another .cfg file, I define a service with hostgroup_name name1, !name2
Indeed, the service is only defined for hosts in hostgroup name1 but not for hosts in hostgroup name2.
But under core 4.1.1, same configuration files, I get an error on that 2nd file, saying name2 could not be found.
I tried rearranging the order of specification of the separate configuration files in nagios.cfg, but no evident change.
Thoughts?