icinga2/test/jenkins/files/configs/notifications.conf

47 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-02-05 14:21:42 +01:00
/**
* This template is essentially the same as the default one but with a customised notification_interval
*/
template Notification "mail-notification" {
2014-02-05 14:21:42 +01:00
notification_command = "mail-service-notification",
notification_state_filter = (StateFilterWarning |
StateFilterCritical |
StateFilterUnknown),
notification_type_filter = (NotificationFilterProblem |
NotificationFilterAcknowledgement |
NotificationFilterRecovery |
NotificationFilterCustom |
NotificationFilterFlappingStart |
NotificationFilterFlappingEnd |
NotificationFilterDowntimeStart |
NotificationFilterDowntimeEnd |
NotificationFilterDowntimeRemoved),
notification_period = "24x7",
notification_interval = 10
2014-02-05 14:21:42 +01:00
}
/**
* 1:1 copy of the default command
*/
object NotificationCommand "mail-service-notification" {
import "plugin-notification-command",
2014-02-05 14:21:42 +01:00
command = [ (IcingaSysconfDir + "/icinga2/scripts/mail-notification.sh") ],
export_macros = [
"NOTIFICATIONTYPE",
"SERVICEDESC",
"HOSTALIAS",
"HOSTADDRESS",
"SERVICESTATE",
"LONGDATETIME",
"SERVICEOUTPUT",
"NOTIFICATIONAUTHORNAME",
"NOTIFICATIONCOMMENT",
"HOSTDISPLAYNAME",
"SERVICEDISPLAYNAME",
"USEREMAIL"
]
}