My notification command looks like this:
Code: Select all
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $_HOSTSLATYPE$ $NOTIFICATIONTYPE$ Service Alert: $HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$the SLA type is not included.RECOVERY Service Alert - MYHOSTNAME/MY SERVICE NAME is OK
I also tried defining the same variable directly in the service and referencing it as _SERVICESLATYPE but got the same results.
Is there a trick I am missing to sending custom variable macros in notifcations or can this not be done?