1/** 2 * The example notification apply rules. 3 * 4 * Only applied if host/service objects have 5 * the custom variable `notification` defined 6 * and containing `mail` as key. 7 * 8 * Check `hosts.conf` for an example. 9 */ 10 11apply Notification "mail-icingaadmin" to Host { 12 import "mail-host-notification" 13 user_groups = host.vars.notification.mail.groups 14 users = host.vars.notification.mail.users 15 16 //interval = 2h 17 18 //vars.notification_logtosyslog = true 19 20 assign where host.vars.notification.mail 21} 22 23apply Notification "mail-icingaadmin" to Service { 24 import "mail-service-notification" 25 user_groups = host.vars.notification.mail.groups 26 users = host.vars.notification.mail.users 27 28 //interval = 2h 29 30 //vars.notification_logtosyslog = true 31 32 assign where host.vars.notification.mail 33} 34