2 Actions
Overview
If you want some operations taking place as a result of events (for example, notifications sent), you need to configure actions.
Actions can be defined in response to events of all supported types:
-
Trigger events – when trigger status changes from OK to PROBLEM and back
-
Discovery events – when network discovery takes place
-
Auto registration events – when new active agents auto-register
-
Internal events – when items become unsupported or triggers go into an unknown state
Configuring an action
To configure an action, do the following:
-
Go to Configuration → Actions
-
From the Event source dropdown select the required source
-
Click on Create action
-
Set general action attributes
-
Choose the operation to carry out, in Operations tab
-
Choose the conditions upon which the operation is carried out, in Conditions tab
General action attributes:
Parameter | Description |
---|---|
Name | Unique action name. |
Default subject | Default message subject. The subject may contain macros. |
Default message | Default message. The message may contain macros. |
Recovery message | A special recovery message can be sent after the original problem is resolved. With Recovery message enabled, an OK trigger event is treated specifically as recovery event. Only one recovery message is sent for a recovery event (full escalation does not take place). A custom message subject and body can be specified for recovery message (default message is sent in escalation based on OK event). Note: A custom recovery message works when trigger value action condition is “Trigger value=PROBLEM”. The message will be sent only to those who received any messages regarding the problem before. A recovery message inherits acknowledgment status and history from the problem event (such as when expanding EVENT.ACK.HISTORY and EVENT.ACK.STATUS macros). EVENT.* macros refer to the original problem event in a recovery message (not in escalation based on OK event). EVENT.RECOVERY.* macros are expanded in a recovery message (not in escalation based on OK event). |
Recovery subject | Recovery message subject. It may contain macros. |
Recovery message | Recovery message. It may contain macros. |
Enabled | Mark the checkbox to enable the action. Otherwise it will be disabled. |
Data source: Zabbix