This is a translation of the original English documentation page. Help us make it better.

2 Akcje usługi

Overview

In this section you can view and configure service actions.

Service actions are useful if you want some operations taking place as a result of service status change (OK ⇿ PROBLEM), for example:

  • send message
  • restart webserver

Service actions are functionally similar to other action types in Zabbix (for example, trigger actions).

Configuration

To create a new service action, go to the Service action subsection of the Services menu, then click on Create action in the upper right corner.

Service actions are configured in the same way as other types of actions in Zabbix. For more details, see configuring actions. However, service actions support different set of conditions, which are listed below.

Conditions

The following conditions can be used in service actions:

Condition type Supported operators Description
Service equals
does not equal
Specify a service or a service to exclude.
equals - event belongs to this service.
does not equal - event does not belong to this service.
Specifying a parent service implicitly selects all child services. To specify the parent service only, all nested services have to be additionally set with the does not equal operator.
Service name contains
does not contain
Specify a string in the service name or a string to exclude.
contains - event is generated by a service, containing this string in the name.
does not contain - this string cannot be found in the service name.
Service tag name equals
does not equal
contains
does not contain
Specify an event tag or an event tag to exclude. Service event tags can be defined in the service configuration section Tags.
equals - event has this tag
does not equal - event does not have this tag
contains - event has a tag containing this string
does not contain - event does not have a tag containing this string.
Service tag value equals
does not equal
contains
does not contain
Specify an event tag and value combination or a tag and value combination to exclude. Service event tags can be defined in the service configuration section Tags.
equals - event has this tag and value
does not equal - event does not have this tag and value
contains - event has a tag and value containing these strings
does not contain - event does not have a tag and value containing these strings.

Make sure to define message templates for Service actions in the Administration->Media types menu. Otherwise, the notifications will not be sent.