Re: [icinga-users] mail interval depending on service's state

2016-11-08 Thread Bancal Samuel
Thanks Gerald, that works! Regards, Samuel On 08. 11. 16 14:02, Gerald Vogt wrote: On 08/11/2016 13:52, Bancal Samuel wrote: 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-not

Re: [icinga-users] mail interval depending on service's state

2016-11-08 Thread Gerald Vogt
On 08/11/2016 13:52, Bancal Samuel wrote: 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 { int

[icinga-users] mail interval depending on service's state

2016-11-08 Thread Bancal Samuel
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 tes