From dd8301ba5ddf944b7f7a8fc0a78fad578e96ec5f Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 5 Sep 2017 15:16:21 +0200 Subject: [PATCH] Examples: Fix notification commands for 2.7 refs #361 --- examples/example_config.pp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/example_config.pp b/examples/example_config.pp index 25e0323d1..192c7d55f 100644 --- a/examples/example_config.pp +++ b/examples/example_config.pp @@ -220,7 +220,8 @@ command => [ 'SysconfDir + /icinga2/scripts/mail-host-notification.sh' ], env => { 'NOTIFICATIONTYPE' => '$notification.type$', - 'HOSTALIAS' => '$host.display_name$', + 'HOSTNAME' => '$host.name$', + 'HOSTDISPLAYNAME' => '$host.display_name$', 'HOSTADDRESS' => '$address$', 'HOSTSTATE' => '$host.state$', 'LONGDATETIME' => '$icinga.long_date_time$', @@ -237,8 +238,9 @@ command => [ 'SysconfDir + /icinga2/scripts/mail-service-notification.sh' ], env => { 'NOTIFICATIONTYPE' => '$notification.type$', - 'SERVICEDESC' => '$service.name$', - 'HOSTALIAS' => '$host.display_name$', + 'SERVICENAME' => '$service.name$', + 'HOSTNAME' => '$host.name$', + 'HOSTDISPLAYNAME' => '$host.display_name$', 'HOSTADDRESS' => '$address$', 'SERVICESTATE' => '$service.state$', 'LONGDATETIME' => '$icinga.long_date_time$',