...
Code Block | ||||
---|---|---|---|---|
| ||||
... <!-- Note: "> /tmp/command_output.txt" used to simulate inthe thisstarting caseof start the notification program Note: "/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> ... |
Code Block | ||||
---|---|---|---|---|
| ||||
... <!-- Note: "/bin/sh -c" is separated by "|" from following command --> <NotificationCommand><![CDATA[/bin/sh -c | /tmp/command.sh]</NotificationCommand> ... |
Code Block | ||||
---|---|---|---|---|
| ||||
#! /bin/sh # notification commandNote: "> /tmp/command_output.txt" used to simulate the starting of the notification program # # JobScheduler Monitoring Interface has set the following environment variables for this script: # $SCHEDULER_MON_SERVICE_NAME value of Attribute "service_name_on_error" or "service_name_on_success" # $SCHEDULER_MON_SERVICE_STATUS value of Attribute "service_status_on_error" or "service_status_on_success" # $SCHEDULER_MON_SERVICE_MESSAGE_PREFIX ERROR if error occured # RECOVERED if error recovered # TIMER if performance check # $SCHEDULER_MON_TABLE_FIELD_<field name> table field name of result row for message string(see table definition SCHEDULER_MON_NOTIFICATIONS) # e.g.: $SCHEDULER_MON_TABLE_FIELD_ID, $SCHEDULER_MON_TABLE_FIELD_TASK_ID etc. 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 |
...