]> granicus.if.org Git - icinga2/commitdiff
Update example config.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 8 Apr 2014 22:07:39 +0000 (00:07 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 8 Apr 2014 22:07:39 +0000 (00:07 +0200)
Refs #5909

etc/icinga2/conf.d/notifications.conf

index 14c35c54c83bacc30a7cd59281b02f04835929d5..7decaeb0451375a8e9b6b78fd7537e1f0ed4ba70 100644 (file)
@@ -20,16 +20,16 @@ object NotificationCommand "mail-host-notification" {
 
   env = {
     "NOTIFICATIONTYPE" = "$notification.type$"
-    "HOSTALIAS" = "$host.displayname$",
-    "HOSTADDRESS" = "$host.vars.address$",
+    "HOSTALIAS" = "$host.display_name$",
+    "HOSTADDRESS" = "$address$",
     "HOSTSTATE" = "$host.state$",
-    "LONGDATETIME" = "$icinga.longdatetime$",
+    "LONGDATETIME" = "$icinga.long_date_time$",
     "HOSTOUTPUT" = "$host.output$",
     "NOTIFICATIONAUTHORNAME" = "$notification.author$",
     "NOTIFICATIONCOMMENT" = "$notification.comment$",
-    "HOSTDISPLAYNAME" = "$host.displayname$",
-    "HOSTDISPLAYNAME" = "$host.displayname$",
-    "USEREMAIL" = "$user.vars.email$"
+    "HOSTDISPLAYNAME" = "$host.display_name$",
+    "HOSTDISPLAYNAME" = "$host.display_name$",
+    "USEREMAIL" = "$user.email$"
   }
 }
 
@@ -51,17 +51,17 @@ object NotificationCommand "mail-service-notification" {
 
   env = {
     "NOTIFICATIONTYPE" = "$notification.type$"
-    "SERVICEDESC" = "$service.description$"
-    "HOSTALIAS" = "$host.displayname$",
-    "HOSTADDRESS" = "$host.vars.address$",
+    "SERVICEDESC" = "$service.name$"
+    "HOSTALIAS" = "$host.display_name$",
+    "HOSTADDRESS" = "$address$",
     "SERVICESTATE" = "$service.state$",
-    "LONGDATETIME" = "$icinga.longdatetime$",
+    "LONGDATETIME" = "$icinga.long_date_time$",
     "SERVICEOUTPUT" = "$service.output$",
     "NOTIFICATIONAUTHORNAME" = "$notification.author$",
     "NOTIFICATIONCOMMENT" = "$notification.comment$",
-    "HOSTDISPLAYNAME" = "$host.displayname$",
-    "SERVICEDISPLAYNAME" = "$service.displayname$",
-    "USEREMAIL" = "$user.vars.email$"
+    "HOSTDISPLAYNAME" = "$host.display_name$",
+    "SERVICEDISPLAYNAME" = "$service.display_name$",
+    "USEREMAIL" = "$user.email$"
   }
 }