...
Code Block | ||||
---|---|---|---|---|
| ||||
... <!-- "> /tmp/command_output.txt" simulate in this case start the notification program "/bin/sh -c" is separated by "|" from following command --> <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> ... |
Code Block | ||||
---|---|---|---|---|
| ||||
... <!-- /bin/sh -c is separated by | from following command --> <NotificationCommand><![CDATA[/bin/sh -c | /tmp/command.sh]</NotificationCommand> ... |
...
Code Block | ||||
---|---|---|---|---|
| ||||
#! /bin/sh # notification command has set the environment variables for this script: # $SCHEDULER_MON_SERVICE_NAME # $SCHEDULER_MON_SERVICE_STATUS # $SCHEDULER_MON_SERVICE_MESSAGE_PREFIX # $SCHEDULER_MON_TABLE_FIELD_<field name> table field name of result row for message string(see table definition SCHEDULER_MON_NOTIFICATIONS) echo $JAVA_HOME $SCHEDULER_MON_SERVICE_NAME:$SCHEDULER_MON_SERVICE_STATUS:$SCHEDULER_MON_SERVICE_MESSAGE_PREFIX history id = $SCHEDULER_MON_TABLE_FIELD_ORDER_HISTORY_ID > /tmp/command_output.txt |
...