From 7bb5176a0e1d3a7d8a119b92758404d514f59be9 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 25 Oct 2024 00:49:42 -0400 Subject: icinga stuff --- .../conf.d/notifications.conf.icinga_server | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server (limited to 'files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server') 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 new file mode 100644 index 0000000..effff9e --- /dev/null +++ b/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server @@ -0,0 +1,23 @@ +apply Notification "mail-icingaadmin" to Host { + import "mail-host-notification" + user_groups = host.vars.notification.mail.groups + users = host.vars.notification.mail.users + + //interval = 2h + + //vars.notification_logtosyslog = true + + assign where host.vars.notification.mail +} + +apply Notification "mail-icingaadmin" to Service { + import "mail-service-notification" + user_groups = host.vars.notification.mail.groups + users = host.vars.notification.mail.users + + //interval = 2h + + //vars.notification_logtosyslog = true + + assign where host.vars.notification.mail +} -- cgit v1.2.3