2 Operations

    Overview

    • Send a message

    Zabbix server does not create alerts if access to the host is explicitly “denied” for the user defined as action operation recipient or if the user has no rights defined to the host at all.

    For discovery and autoregistration events, additional operations are available:

    • Remove host
    • Enable host
    • Disable host
    • Remove from host group
    • Link to template
    • Unlink from template
    • Set host inventory mode

    Configuring an operation

    General operation attributes:

    To configure details of a new operation, click on 2 Operations - 图2 in the Operations block. To edit an existing operation, click on next to the operation. A pop-up window will open where you can edit the operation step details.

    Operation details

    2 Operations - 图4

    ParameterDescription
    OperationSelect the operation:
    Send message - send message to user.
    <remote command name> - execute a remote command. Commands are available for execution if previously defined in global scripts with Action operation selected as its scope.
    More operations are available for discovery and autoregistration based events (see above).
    StepsSelect the step(s) to assign the operation to in an schedule:
    From - execute starting with this step.
    To - execute until this step (0=infinity, execution will not be limited).
    Step durationCustom duration for these steps (0=use default step duration).
    Time suffixes are supported, e.g. 60s, 1m, 2h, 1d, since Zabbix 3.4.0.
    are supported, since Zabbix 3.4.0.
    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: send message
    Send to user groupsSelect user groups to send the message to.
    The user group must have at least “read” to the host in order to be notified.
    Send to usersSelect users to send the message to.
    The user must have at least “read” permissions to the host in order to be notified.
    Send only toSend message to all defined media types or a selected one only.
    Custom messageIf selected, the custom message can be configured.
    For notifications about internal events via , custom message is mandatory.
    SubjectSubject of the custom message. The subject may contain macros. It is limited to 255 characters.
    MessageThe custom message. The message may contain macros. It is limited to certain amount of characters depending on the type of database (see Sending message for more information).
    Operation type:
    Target listSelect targets to execute the command on:
    Current host - command is executed on the host of the trigger that caused the problem event. This option will not work if there are multiple hosts in the trigger.
    Host - select host(s) to execute the command on.
    Host group - select host group(s) to execute the command on. Specifying a parent host group implicitly selects all nested host groups. Thus the remote command will also be executed on hosts from nested groups.
    A command on a host is executed only once, even if the host matches more than once (e.g. from several host groups; individually and from a host group).
    The target list is meaningless if a custom script is executed on Zabbix server. Selecting more targets in this case only results in the script being executed on the server more times.
    Note that for global scripts, the target selection also depends on the Host group setting in global script configuration.
    Target list option is not available for Service actions because in this case remote commands are always executed on Zabbix server.
    ConditionsCondition for performing the operation:
    Event is not acknowledged - only when the event is unacknowledged.
    Event is acknowledged - only when the event is acknowledged.
    Conditions option is only available for Trigger actions.