aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-26 00:07:03 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-26 00:07:03 -0400
commit6e2a5993ce470341bed0e0c6ba8e44de3712d50e (patch)
tree7a6bad35bac69e5f9264a5dde460335b1068ec9e /files/usr/local/etc/icinga2/conf.d/notifications.conf.icinga_server
parent7bb5176a0e1d3a7d8a119b92758404d514f59be9 (diff)
downloadinfrastructure-6e2a5993ce470341bed0e0c6ba8e44de3712d50e.tar.gz
more icinga stuff
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
}