Using implied Inheritance with service/contact_groups gives


#1

Hi,

i would like to use the implied inheritance from nagios 3.x, to have one service for multiple hosts with different contact_groups. According to docs if no contact_groups are given in the service or service_template the contact_group are inheritated from the host/host_template.

given the following example configuration with nagios 3.0a5

define host{
        host_name                               proxy1.colo.de.corp.somecorp.com
        use                             colo.de.corp.somecorp.com
        alias                           proxy1.colo.de.somecorp.com
        address                         10.11.53.32
        hostgroups                      somecorp-colo-de
        contact_groups                  colo.de.corp.somecorp
        notification_interval           30
        notification_period             24x7
        notification_options            d,u,r,f
        notifications_enabled           1
        stalking_options                        o,d,u
}
define service{
        host_name                               proxy1.colo.de.somecorp.com
        service_description             Dansguardian
        use                             generic
        check_command                   check_http_proxy!8080!http://www.google.de!
}
define service{
        name                            generic
        service_description             generic
        max_check_attempts                      3
        normal_check_interval           1
        retry_check_interval            2
        check_period                    24x7
        event_handler                   submit-service-check-result
        event_handler_enabled           1
        notification_interval           30
        notification_period             24x7
        notification_options            w,u,c,r,f
        notifications_enabled           1
        stalking_options                        o,w,u,c
        register                                0
}

running nagios -v gave me an unexpected result:

Warning: Service 'Dansguardian' on host 'proxy1.colo.de.corp.somecorp.com'  has no default contact group(s) defined !

bug or missconfiguration/missunderstanding of the docs or any hints ?

regards
gg