2014-02-05 14:21:42 +01:00
|
|
|
/**
|
|
|
|
* This template is essentially the same as the default one but with a customised notification_interval
|
|
|
|
*/
|
2014-01-20 17:21:19 +01:00
|
|
|
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",
|
2014-02-19 15:33:10 +01:00
|
|
|
notification_interval = 10
|
2014-02-05 14:21:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 1:1 copy of the default command
|
|
|
|
*/
|
2014-03-27 12:30:24 +01:00
|
|
|
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"
|
|
|
|
]
|
2014-01-20 17:21:19 +01:00
|
|
|
}
|