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.notification_period = host.vars.sla
.
.
}
*******************
apply Notification "XXXXX" to Service {
.
.
if (service.vars.notification_period) {
period = service.vars.notification_period
} else {
period = "24x7"
}
.
.
}
Best regards
Stefan
From: icinga-users [mailto:[email protected]] On Behalf Of
Paré, Caroline
Sent: Monday, November 07, 2016 4:44 PM
To: '[email protected]'
Subject: [NEWS: ] [icinga-users] Question?
Is there a way to associate all the services "notification_period" at the same
"notification_period" of the host?
For example, I have a server that "notification_period=workours" and 3 services
(Memory, Load, Apache) configured to have "notification_period = 24x7".
If the server on which is running these services have
"notification_pediod=workours", I don't want to be notified for these 3
services.
For certains servers, I want that those service notify the same period of the
host, but I don't wan't to duplicate the definition of my services.
Any help will be appreciated.
Caroline
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users