The list of actions displayed in the drop down menu is configurable, and you can define actions to open or update trouble tickets, telnet or ssh to a remote host, or run any other script or command. Actions are defined in XML files located in the following directory of the DGE or DGE extension you want to configure: <TRAVERSE_HOME>/plugin/actions/
.
For on premise instances only: if the send-from is set to DGE, then you must reload the DGE also (you do not need to RESTART the components). See Reloading Configuration Files on how to reload configuration files.
Defining an Action
<TRAVERSE_HOME>/plugin/actions/
xyz
' is a descriptive name for the action event: nn_action_xyz.xml
.<action-item enabled="true|false">
<name/>
<type/>
<target/>
<parameters/>
<timeout/>
<send-from>dge|bve</send-from>
<on-demand>true|false</on-demand>
<input>
<name/>
<caption/>
<type/>
<size/>
<default/>
<required/>
</input>
</action-item>
The following table describes the elements that can be used in an action-item definition.
Action-item Elements
Element |
Value/Description |
action-item |
enabled="true|false" If true, the action will be shown in the Event Manager, and the content of name appears in the drop-down list of actions. |
name |
ASCII text |
type |
regular-email | compact-email | script | url |
target |
Depends on the action type. |
parameters |
All the variables for plugin actions can be used in action-item definitions (see Actions and Notifications and the ). The following variables are also available: ${login_user} ${represented_user} ${message_id}. |
timeout |
Value in seconds. A value of 0 means do not wait for completion. |
send-from |
dge | bve |
on-demand |
true | false Always set to true for now. |
input |
Contains the following elements to define the fields for an interactive pop-up form when the action is triggered: name: ASCII text caption: name on pop-up form type: text size: width of text box default: default value required: true | false |
Action Type Parameters
Type |
Target |
Parameter |
script |
relative path |
cmd line args |
url |
url |
none |
to |
none |
The templates for emails that are sent out (regular_email.xml
and compact_email.xml
) are located in the <TRAVERSE_HOME>/etc/actions/
directory since these templates are also used by the action framework. See Actions and Notifications.