Acknowledged alert $NOTIFICATIONCOMMENT$ output = CRITICAL1
Posted: Wed Feb 03, 2021 12:08 pm
We have a custom script to manage service notifications (i.e. only send epage when host is in "Prod" and severity is "Critical") and a few other requirements.
Command line:
$USER1$/notify-service.sh "$SERVICESTATE$" "$LASTSERVICESTATE$" "$NOTIFICATIONTYPE$" "$SERVICEDESC$" "$HOSTALIAS$" "$HOSTNAME$" "$HOSTADDRESS$" "$SERVICEOUTPUT$" "$CONTACTEMAIL$" "$CONTACTPAGER$" "$NOTIFICATIONCOMMENT$"
Issue: Output of $NOTIFICATIONCOMMENT$ = CRITICAL1 when alerts are ACKNOWLEDGED
Example:
***** Nagios XI - Prod *****
Notification Type: ACKNOWLEDGEMENT
Service: MSSQL Memory Usage - Test \State: CRITICAL
Host: hostname \Device: Windows_SQL_VIP_Prod
Info: (Service check timed out after 60.01 seconds)
Date/Time: Wed Feb 3 11:43:33 EST 2021
Comment: CRITICAL1
From what I've found, the older *ACKCOMMENT macro/variables are depreciated?
Looking for the output from what gets entered as reason/comment for alert acknowledgement to include in the email notifications.
Do I have the correct macro/variable for this purpose?
What am I missing?
Thanks!
Command line:
$USER1$/notify-service.sh "$SERVICESTATE$" "$LASTSERVICESTATE$" "$NOTIFICATIONTYPE$" "$SERVICEDESC$" "$HOSTALIAS$" "$HOSTNAME$" "$HOSTADDRESS$" "$SERVICEOUTPUT$" "$CONTACTEMAIL$" "$CONTACTPAGER$" "$NOTIFICATIONCOMMENT$"
Issue: Output of $NOTIFICATIONCOMMENT$ = CRITICAL1 when alerts are ACKNOWLEDGED
Example:
***** Nagios XI - Prod *****
Notification Type: ACKNOWLEDGEMENT
Service: MSSQL Memory Usage - Test \State: CRITICAL
Host: hostname \Device: Windows_SQL_VIP_Prod
Info: (Service check timed out after 60.01 seconds)
Date/Time: Wed Feb 3 11:43:33 EST 2021
Comment: CRITICAL1
From what I've found, the older *ACKCOMMENT macro/variables are depreciated?
Looking for the output from what gets entered as reason/comment for alert acknowledgement to include in the email notifications.
Do I have the correct macro/variable for this purpose?
What am I missing?
Thanks!