SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment
SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment
The docs for the external command SEND_CUSTOM_SVC_NOTIFICATION put the critical information in the <comment> field (ie, "The NOC is currently flooding. Help!", see https://assets.nagios.com/downloads/nag ... and_id=135). But this command uses the notify-service-by-email stub, which does not include either the <author> or <comment> fields in the notification. In the log, sure, but the notification itself ends with "Additional Info: " and the $SERVICE_OUTPUT$ macro. How is the <command> of a custom service notification written to the nagios.cmd pipe supposed to get into the notification?
-
danderson
Re: SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment
Thanks for reaching out @olagarde,
Are you asking how the custom service notification works from a technical standpoint or are you asking how you would access the command comment? Regarding the latter, you can include the $NOTIFICATIONCOMMENT$ macro in the notification.
Are you asking how the custom service notification works from a technical standpoint or are you asking how you would access the command comment? Regarding the latter, you can include the $NOTIFICATIONCOMMENT$ macro in the notification.