Alignak-monitoring / alignak

Monitoring tool, highly flexible and new standard oriented
https://alignak-monitoring.github.io
GNU Affero General Public License v3.0
86 stars 19 forks source link

Contacts tempaltes inheritance problem #1084

Closed mohierf closed 5 years ago

mohierf commented 5 years ago

Assuming this configuration:

# Generic contact definition
define contact{
    name                          generic-contact
    register                      0

    host_notifications_enabled      1
    service_notifications_enabled   1
    email                                   alignak@localhost
}
# A contact template
define contact{
    name                             not_notified
    use                              generic-contact
    register                         0

    host_notifications_enabled         0
    service_notifications_enabled      0
}

# and two contacts
define contact{
    use                             generic-contact
    contact_name                    admin
    alias                           Administrator
}
define contact{
    use                             not_notified
    contact_name                    no_notif
    alias                           No notifications
}

the contact named no_notif should inherit the host_notifications_enabled and service_notifications_enabled parameters from the not_notified template. As of now, these parameters are False (their default value)