Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send notification to related hosts contact for a service #1815

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lermit
Copy link
Contributor

@lermit lermit commented Feb 18, 2016

Hi,

With the following configuration when an alert is trigger on a service the non-admin contact linked to parent host for my service is not notified.

Host : 
  ...
  contact_groups: +my_contact_group

Contact group
  define contactgroup {
    contactgroup_name my_contact_group
    alias                       my_contact_group
    members                my_contact
  }

Contact
  define contact{
    use         generic-contact
    contact_name    my_contact
    email                   [email protected] 

    service_notifications_enabled 1 
    notificationways   detailled-email
}


define notificationway{
   notificationway_name            detailled-email
   service_notification_period     24x7
   host_notification_period        24x7
   service_notification_options    c,w,r
   host_notification_options       d,u,r,f,s
   service_notification_commands   detailled-service-by-email ; send service notifications via email
   host_notification_commands      detailled-host-by-email    ; send host notifications via email
}

As I see in schedulingitem the contacts field of host is not handle. I've write few lines in order to catch this case.

Not sure this is the right way or if I've made a configuration mistake. What do you think about this ?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant