Hi,

Is there a way to set the mail notification interval depending on the service's 
state?

We have a context where we expect a notification interval of 1 week for a 
WARNING level and an interval of 1 day when CRITICAL.

basically I set something like this (here I set 2 and 5 minutes ... to test 
faster ;) ) :

apply Notification "mail_two_levels" to Service {
  import "mail-service-notification"

  if ( service.state == "CRITICAL" ) {
    interval = 2m
  } else {
    interval = 5m
  }

  user_groups = host.vars.notification.mail_two_levels.groups
  users = host.vars.notification.mail_two_levels.users

  assign where host.vars.notification.mail_two_levels
}

Unfortunately notifications still arrive every 5 minutes even when state is 
CRITICAL.

Regards,
Samuel Bancal

--
Samuel Bancal
ENAC-IT
EPFL

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to