Page 1 of 1

SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment

Posted: Fri Jul 21, 2023 11:29 am
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?

Re: SEND_CUSTOM_SVC_NOTIFICATION logs but does not send the custom comment

Posted: Thu Aug 17, 2023 1:22 pm
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.