[Nagios-devel] BUG: Inherited contact/contactgroups don't play well

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] BUG: Inherited contact/contactgroups don't play well

Post by Guest »

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If a service is defined with no contactgroup, it's being inherited from
the host. Therefore when removing a contactcroup definition from a root
service template with the same contactgroup on all hosts, one would
expect the resulting config to be the same, right?

Unfortunately when using additive contactgroup definitions for a
service, only the service templates are looked up for a definition so
the host definitions are not inherited. The same foes for contact
definitions and service escalations. Any such service definition end up
having only the aditive definitions, not the ones normally inherited.

I didn't have the time to fix it yet, but it seems like the best fix
would require some refactoring of xodtemplate_get_inherited_string to
handle services and serviceexcalations in a special way.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkreECgACgkQ6dZ+Kt5BchahcgCgx+6WB6s0Y/ZGl5k7a1cgafcP
PSsAn18UDoImIFBwC5drAO8GvcC0gD7T
=uRsW
-----END PGP SIGNATURE-----





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked