...
These variables can be used when the NotificationCommand calls the notification client - not directly but via a shell script that makes the logical implementation for sending the notification messages.
Table variables
...
title | Variables |
---|
All table variables (see Table variables
explanation) are set as environment variables with the prefix:
SCHEDULER_MON_TABLE_
e.g.:
SCHEDULER_MON_TABLE_MON_N_ID
SCHEDULER_MON_TABLE_MON_N_SCHEDULER_ID
...
Service variables
...
Name | Description |
---|---|
| Current service name. One of both element attributes:
|
| Current service status. One of both element attributes or default:
|
|
|
| Content of the SystemMonitorNotification / Notification / NotificationCommand after substitution |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
1) configured command in the SystemMonitorNotification_<MonitorSystem>.xml file <NotificationCommand><![CDATA[/tmp/command.sh]</NotificationCommand> 2) content of the /tmp/command.sh file #! /bin/sh # Note: "> /tmp/command_output.txt" is used to simulate the starting of the notification client # echo "$SCHEDULER_MON_SERVICE_NAME:$SCHEDULER_MON_SERVICE_STATUS:$SCHEDULER_MON_SERVICE_MESSAGE_PREFIX history id = $SCHEDULER_MON_TABLE_MON_N_ORDER_HISTORY_ID" > /tmp/command_output.txt |
...