Contact inheritance for service does not work after update

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
danjoh
Posts: 73
Joined: Mon Dec 07, 2015 10:43 am
Location: Zürich, Switzerland
Contact:

Contact inheritance for service does not work after update

Post by danjoh »

I am having a problem with "contact inheritance" after Update from Core 4.4.5 to 4.4.6.
We have a lot of services defined with "contact_groups +<group>" and before this was working fine (adding the group <group> to the list of groups). Now it just replaces the contact_groups with <group>".

Example:

Code: Select all

define host {
        use                             host-template
        host_name                       testhost
        contact_groups                  group_a
}
define service {
        use                             service-defs
        service_description             service1
        host_name                       testhost
        check_command                   check_service1
}

define service {
        use                             service-defs
        service_description             service2
        host_name                       testhost
        check_command                   check_service2
        contact_groups                  +group_b
}
I would expect that for service1 to have "contact_groups = group_a" and service2 to have "contact_groups = group_a,group_b", but with 4.4.6 this is not the case. In 4.4.6 the result is that service2 ONLY have "contact_groups = group_b" (the "+" is ignored).

Any quick fix for this issue (short of change all services with "contact_groups +")?

Or have I misunderstood the use of "+<group>" and it was just luck that it worked before?
Use of "+<contact>" works fine for both Hosts and Services.

Regards,
--
D/\N
Locked