Zabbix Documentation 2.4

2.23.04.0 (current)In development:4.2 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

manual:config:notifications:action

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:

ParameterDescription
NameUnique action name.
Default subjectDefault message subject. The subject may contain macros.
Default messageDefault message. The message may contain macros.
Recovery messageMark the checkbox to turn on a Recovery message.
Recovery message is a special way of getting notified for a resolved problem. If turned on, only a single message with a custom subject/body is sent if trigger value changes to OK.
Note: To receive a recovery message, “Trigger value=Problem” must be present in action conditions; “Trigger value=OK”, however, must not be present. (If “Trigger value=OK” is set, the recovery message will not work; instead you will get a full escalation of defined messages and/or remote commands in the same way as for a problem situation).
Recovery 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).
If using {EVENT.*} macros in a recovery message, they will refer to the problem event (not the OK event).
{EVENT.RECOVERY.*} macros will only expanded in a recovery message and will refer to the recovery/OK event.
Recovery subjectRecovery message subject. It may contain macros.
Recovery messageRecovery message. It may contain macros.
EnabledMark the checkbox to enable the action. Otherwise it will be disabled.