Jan Dittberner
c624514dcc
- define Matrix notification commands - define time periods and CAcert admin user group - define notification origins - add beholder host checks on both infra02sat and infra03sat
48 lines
1.3 KiB
Text
48 lines
1.3 KiB
Text
/*
|
|
* vim: ft=icinga2 ts=2 sw=2 et si ai
|
|
* Notification templates
|
|
*/
|
|
|
|
/**
|
|
* Provides default settings for host notifications.
|
|
* By convention all host notifications should import
|
|
* this template.
|
|
*/
|
|
template Notification "matrix-host-notification" {
|
|
command = "matrix-host-notification"
|
|
|
|
states = [ Up, Down ]
|
|
types = [ Problem, Acknowledgement, Recovery, Custom,
|
|
FlappingStart, FlappingEnd,
|
|
DowntimeStart, DowntimeEnd, DowntimeRemoved ]
|
|
|
|
vars += {
|
|
// notification_icingaweb2url = "https://www.example.com/icingaweb2"
|
|
// notification_from = "Icinga 2 Host Monitoring <icinga@example.com>"
|
|
notification_logtosyslog = false
|
|
}
|
|
|
|
period = "24x7"
|
|
}
|
|
|
|
/**
|
|
* Provides default settings for service notifications.
|
|
* By convention all service notifications should import
|
|
* this template.
|
|
*/
|
|
template Notification "matrix-service-notification" {
|
|
command = "matrix-service-notification"
|
|
|
|
states = [ OK, Warning, Critical, Unknown ]
|
|
types = [ Problem, Acknowledgement, Recovery, Custom,
|
|
FlappingStart, FlappingEnd,
|
|
DowntimeStart, DowntimeEnd, DowntimeRemoved ]
|
|
|
|
vars += {
|
|
// notification_icingaweb2url = "https://www.example.com/icingaweb2"
|
|
// notification_from = "Icinga 2 Service Monitoring <icinga@example.com>"
|
|
notification_logtosyslog = false
|
|
}
|
|
|
|
period = "24x7"
|
|
}
|