-
Notifications
You must be signed in to change notification settings - Fork 17
$ADMINEMAIL$ not populated on notification command #484
Comments
Hi @angeleseros, |
From version 18.10 |
Additional Info: Alert Macros |
I have tested on a newly installed centreon 20.10.7 with the following notification command: /usr/bin/printf "%b" "***** centreon Notification ***\n\nNotification Type: and did an acknowledgement of a dummy service on critical and received the following: ***** centreon Notification ***** Notification Type: ACKNOWLEDGEMENT Service: generic-dummy-service-custom Date/Time: 2021-05-17 Additional Info : CRITICAL: Dummy Service |
Hi @angeleseros, |
Regarding these macros
They are deprecated. |
Hi @omercier, Any information regarding this? |
Hi Jochen, |
We recently upgraded our centreon to v20.10 and I have a notification command as follows:
define command {$HOSTACKCOMMENT$ " To="$CONTACTEMAIL$" From=" $ADMINEMAIL$ " Subject="** Host $HOSTSTATE$ alert for $HOSTNAME$ **" LOGFILE="/var/log/centreon-engine/host_notification_via_sendmail.log"'
command_name host-notify-by-email-html-v2
command_line /bin/sh -c '/usr/lib/centreon/custom/bash/notification_via_sendmail_html Date="$DATE$" Time="$TIME$" NotificationType="$NOTIFICATIONTYPE$" Host="$HOSTNAME$" Alias="$HOSTALIAS$" Address="$HOSTADDRESS$" ID="$HOSTPROBLEMID$" PREVID="$LASTHOSTPROBLEMID$" State="$HOSTSTATE$" AdditionalInfo="$HOSTOUTPUT$
[$HOSTACKAUTHOR$]:
}
the /usr/lib/centreon/custom/bash/notification_via_sendmail_html is a custom script that formats the values to HTML.
the$ADMINEMAIL$ is no longer being passed down
is the$ADMINEMAIL$ been changed to other macro? Thanks
The text was updated successfully, but these errors were encountered: