Commit 95f0cd99 authored by root's avatar root
Browse files

Stable icinga config

parent d7fd713f
object NotificationCommand "mail-host-notification" {
object NotificationCommand "enhanced-mail-host-notification" {
import "plugin-notification-command"
command = [ SysconfDir + "/icinga2/scripts/mail-host-perfdata-notification.py" ]
command = [ SysconfDir + "/icinga2/scripts/enhanced-mail-host-notification.py" ]
env = {
NOTIFICATIONTYPE = "$notification.type$"
HOSTALIAS = "$host.display_name$"
......
apply Notification "enhanced-mail-host-for-host" to Host {
import "enhanced-mail-host-notification"
user_groups = host.vars.notification.mail.groups
users = host.vars.notification.mail.users
assign where host.vars.notification.mail
}
apply Notification "enhanced-mail-service-for-host" to Service {
import "enhanced-mail-service-notification"
user_groups = host.vars.notification.mail.groups
users = host.vars.notification.mail.users
assign where host.vars.notification.mail
}
apply Notification "enhanced-mail-service-for-service" to Service {
import "enhanced-mail-service-notification"
user_groups = host.vars.notification.mail.groups
users = host.vars.notification.mail.users
assign where service.vars.notification.mail
}
template Notification "enhanced-mail-host-notification" {
command = "enhanced-mail-host-notification"
states = [ Down ]
types = [ Problem, Recovery ]
period = "24x7"
}
template Notification "enhanced-mail-service-notification" {
command = "enhanced-mail-service-notification"
states = [ OK, Critical ]
types = [ Problem, Recovery ]
period = "24x7"
}
template Notification "mail-enhanced-host-notification" {
command = "mail-enhanced-host-notification"
states = [ Down ]
types = [ Problem, Recovery ]
period = "24x7"
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment