mirror of https://github.com/Icinga/icinga2.git
parent
c188e91604
commit
c5a536e37f
|
@ -481,13 +481,12 @@ The notification is ignored for services whose host name ends with `*internal`
|
||||||
apply Notification "notify-cust-xy-mysql" to Service {
|
apply Notification "notify-cust-xy-mysql" to Service {
|
||||||
import "cust-xy-notification"
|
import "cust-xy-notification"
|
||||||
|
|
||||||
assign where match("*has gold support 24x7*", service.notes) && (host.vars.customer == "customer-xy" || host.vars.always_notify == true
|
assign where match("*has gold support 24x7*", service.notes) && (host.vars.customer == "customer-xy" || host.vars.always_notify == true)
|
||||||
ignore where match("*internal", host.name) || (service.vars.priority < 2 && host.vars.is_clustered == true)
|
ignore where match("*internal", host.name) || (service.vars.priority < 2 && host.vars.is_clustered == true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### <a id="using-apply-services"></a> Apply Services to Hosts
|
### <a id="using-apply-services"></a> Apply Services to Hosts
|
||||||
|
|
||||||
The sample configuration already includes a detailed example in [hosts.conf](5-configuring-icinga-2.md#hosts-conf)
|
The sample configuration already includes a detailed example in [hosts.conf](5-configuring-icinga-2.md#hosts-conf)
|
||||||
|
|
Loading…
Reference in New Issue