Re: [icinga-users] Question?

2016-11-08 Thread Lange, Stefan (GIT-IOEI)
Hi, Maybe you can define in you host template definition for all servers your "notification_period=24x7 » and define in your service and host definition definition. I do it like object Host "Hostname" . . vars.sla = "24x7" . . } *** apply Service "Servicename" { . . vars.noti

Re: [icinga-users] Question?

2016-11-08 Thread Paré , Caroline
I finally found this: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectinheritance.html Section "Implied Inheritance" and it solves my problem. Best Regards, Merci et bonne journée! Caroline Paré | (418) 266-6656 # 24705 Chargée de projets et Responsable des systèmes Li

[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

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

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