aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server')
-rw-r--r--files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server38
1 files changed, 24 insertions, 14 deletions
diff --git a/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server b/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
index effff9e..4f581cc 100644
--- a/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
+++ b/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
@@ -1,23 +1,33 @@
-apply Notification "mail-icingaadmin" to Host {
- import "mail-host-notification"
- user_groups = host.vars.notification.mail.groups
- users = host.vars.notification.mail.users
+apply Notification "email" to Host {
+ command = "mail-host-notification"
- //interval = 2h
+ states = [ Up, Down ]
+ types = [ Problem, Acknowledgement, Recovery, Custom,
+ FlappingStart, FlappingEnd,
+ DowntimeStart, DowntimeEnd, DowntimeRemoved ]
- //vars.notification_logtosyslog = true
+ users = [ "sysadmins" ]
- assign where host.vars.notification.mail
+ vars += {
+ notification_icingaweb2url = "https://${icinga_fqdn}"
+ }
+
+ assign where true
}
-apply Notification "mail-icingaadmin" to Service {
- import "mail-service-notification"
- user_groups = host.vars.notification.mail.groups
- users = host.vars.notification.mail.users
+apply Notification "email" to Service {
+ command = "mail-service-notification"
+
+ states = [ OK, Warning, Critical, Unknown ]
+ types = [ Problem, Acknowledgement, Recovery, Custom,
+ FlappingStart, FlappingEnd,
+ DowntimeStart, DowntimeEnd, DowntimeRemoved ]
- //interval = 2h
+ users = [ "sysadmins" ]
- //vars.notification_logtosyslog = true
+ vars += {
+ notification_icingaweb2url = "https://${icinga_fqdn}"
+ }
- assign where host.vars.notification.mail
+ assign where true
}