To configure a Trigger Action

To configure the sequence of actions that is to be taken in the event of the trigger condition:
- For a nominated Auto-Response - with a defined Check Condition - click on Add Trigger Action (e.g. Send Email or Run Custom Script) to select the action type to be taken. Then configure the selected action (as detailed below)
- Each action is configured with a nominated Action Delay Time which specifies how long (in seconds) after the Auto-Response trigger event to wait before performing the action. So you can add follow-on actions to create a sequence of actions that will be taken in the event of the one trigger condition
- To edit (or delete) an existing action, click the Modify (or Delete) icon in the Scheduled Trigger Action table
Note: A message text can be sent with Email, SMS and Nagios actions. This configurable message can include selected values:
- $AR_TRIGGER_VAL = the trigger value for the check e.g. for UPS Status, it could be onbatt or battlow
- $AR_VAL = the value returned by the check e.g. for ups status, it could be online/onbatt/battlow
- $AR_CHECK_DEV = the device name of the device being checked e.g. for Alarm, the alarm name
- $TIMESTAMP = the current timestamp
- $HOSTNAME = the hostname of the console server
- The default message text is: $TIMESTAMP: This action was run - Check details: value $AR_VAL vs trigger value $AR_TRIGGER_VAL
Specific Trigger Actions

- Send Email
- Click on Send Email as the Add Trigger Action. Enter a unique Action Name and set the Action Delay Time
- Specify the Recipient Email Address to send this email to and the Subject of the email. For multiple recipients you can enter comma separated addresses
- Edit the Email Text message to send and click Save New Action
- Send SMS
- Click on Send SMS as the Add Trigger Action. Enter a unique Action Name and set the Action Delay Time
- Specify the Phone number that the SMS will be sent to in international format (without the +)
- Edit the Message Text to send and click Save New Action
- Perform RPC Action
- Click on Perform RPC Action as the Add Trigger Action. Enter a unique Action Name and set the Action Delay Time
- Select a power Outlet and specify the Action to be performed (power On, OFF or Cycle)
- Click Save New Action
- Run Custom Script
- Click on Run Custom Script as the Add Trigger Action. Enter a unique Action Name and set the Action Delay Time
- Create a script file to execute when this action is triggered and enter the Script Executable file name e.g. /etc/config/action.sh
- Set the Script Timeout (i.e. the maximum run-time for the script). Leave as 0 for unlimited.
- Enter any Arguments that are to be passed to the script and click Save New Action
- Send SNMP Trap
- Click on Send SNMP Trap as the Add Trigger Action. Enter a unique Action Name and set the Action Delay Time
- Send Nagios Event
- Click on Send Nagios Event as the Add Trigger Action. Enter a unique Action Name and set the Action Delay Time
- Edit the Nagios Event Message text to display on the Nagios status screen for the service
- Specify the Nagios Event State (OK, Warning, Critical or Unknown) to return to Nagios for this service
- Click Save New Action
Comments
0 comments
Article is closed for comments.