...
Code Block | ||||
---|---|---|---|---|
| ||||
...
<!--
"> /tmp/command_output.txt" simulate in this case start the notification program
"/bin/sh -c" is separated by "|" from following command
%SERVICE_NAME% value of Attribute "service_name_on_error" or "service_name_on_success"
%SERVICE_STATUS% value of Attribute "service_status_on_error" or "service_status_on_success"
%SERVICE_MESSAGE_PREFIX% ERROR if error occured
RECOVERED if error recovered
TIMER if performance check
%ORDER_HISTORY_ID% ... table field name of result row for message string(see table definition SCHEDULER_MON_NOTIFICATIONS)
e.g.: %ID%, %TASK_ID% etc.
-->
<NotificationCommand>
<![CDATA[/bin/sh -c | echo "%JAVA_HOME% %SERVICE_NAME%:%SERVICE_STATUS%:%SERVICE_MESSAGE_PREFIX%history id=%ORDER_HISTORY_ID%, step =%ORDER_STEP_STATE%, error=%ERROR_TEXT%, check = %CHECK_TEXT%" > /tmp/command_output.txt
</NotificationCommand>
... |
...