SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
olagarde
Posts: 1
Joined: Fri Jul 21, 2023 10:56 am

SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment

Post by olagarde »

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

Post by danderson »

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.
Post Reply