1 Operations
Overview
You can define the following operations for all events:
-
send a message
-
execute a remote command (including IPMI)
For discovery events, there are additional operations available:
-
add host
-
remove host
-
enable host
-
disable host
-
add to group
-
delete from group
-
link to template
-
unlink from template
The additional operations available for auto-registration events are:
-
add host
-
disable host
-
add to group
-
link to template
Configuring an operation
To configure an operation, go to Operations tab in the action properties form and click on New. Edit the operation step and click on Add to add to the list of Action operations.
Operation attributes:
Parameter | Description | ||||
---|---|---|---|---|---|
Default operation step duration | Duration of one operation step by default (minimum 60 seconds). For example, an hour-long step duration means that if an operation is carried out, an hour will pass before the next step. |
||||
Action operations | Action operations are displayed, with these details: Steps – escalation step(s) to which the operation is assigned Details – type of operation and its recipient/target. Since Zabbix 2.2, the operation list also displays the media type (e-mail, SMS, Jabber, etc) used in sending a message as well as the name and surname (in parentheses after the alias) of a notification recipient. Start in – how long after an event the operation is performed Duration (sec) – step duration is displayed. Default is displayed if the step uses default duration, and a time is displayed if custom duration is used. Action – links for editing and removing an operation are displayed. To configure a new operation, click on New. |
||||
Operation details | This block is used to configure the details of an operation. | ||||
Step | Select the step(s) to assign the operation to in an escalation schedule: From – execute starting with this step To – execute until this step (0=infinity, execution will not be limited) Step duration – custom duration for these steps (0=use default step duration). Several operations can be assigned to the same step. If these operations have different step duration defined, the shortest one is taken into account and applied to the step. |
||||
Operation type | Two operation types are available for all events: Send message – send message to user Remote command – execute a remote command More operations are available for discovery and auto-registration based events (see above). |
||||
Operation type: send message | |||||
Send to user groups | Click on Add to select user groups to send the message to. The user group must have at least “read” permissions to the host in order to be notified. |
||||
Send to users | Click on Add to select users to send the message to. The user must have at least “read” permissions to the host in order to be notified. |
||||
Send only to | Send message to all defined media types or a selected one only. | ||||
Default message | If selected, the default message will be used (see general action attributes). | ||||
Subject | Subject of the custom message. The subject may contain macros. | ||||
Message | The custom message. The message may contain macros. | ||||
Operation type: remote command | |||||
Target list | Select current host, other hosts or host groups as targets to execute the command on. | ||||
Type | Select the command type: IPMI – execute an IPMI command Custom script – execute a custom set of commands. You can select to execute the command on Zabbix agent or Zabbix server. SSH – execute an SSH command Telnet – execute a Telnet command Global script – execute one of the global scripts defined in Administration→Scripts. |
||||
Commands | Enter the command(s). | ||||
Conditions | Condition for performing the operation: Not ack – only when the event is unacknowledged Ack – only when the event is acknowledged. |
Data source: Zabbix