Zabbix's action Configuration

Source: Internet
Author: User

Zabbix action has three configuration items action Conditions Operations, two types of action, one send message, two execute remote command

The most important thing to configure the action is to configure the content, define the macro
Parameters
Describe
Name
The unique action name
Default subject
The default message subject, which can contain the macro {TRIGGER. STATUS}
Default message
The default message content can contain macros (macros)
Recovery message
Event recovery message, which is the event from problem to OK state, only sends a message once, also can use the macro {events. Ack. History}/{events. Ack. STATUS}
Enabled
Tick to open this action, not tick to close
The conditions configuration is simply the logical operator between the conditions
Type
Describe
and
All conditions are met at the same time
OR
Meet one condition
and/or
Combination of two relationships, and for different conditions, or for the same condition
Custom expression
Custom expressions such as A or (B and C) ...

and/or description

Host group = Oracle Server
Host group = MySQL server
Trigger name like ' databases are down '
Trigger name like ' database is Unaviailable '
Change to an expression
(Host group = Oracle Server or host group = MySQL server) and (trigger name
Like ' databases are down ' or trigger name like ' databases is unaviable ')
Operations option default operation step Duration (minimum seconds)


The configuration of the operations is more complex and is divided into sending messages and remote execution commands

Send Message Flow:
1) Configure the media for sending medium
2) Configure the user to be sent
3) Configure message delivery in the actions

Remote command note the points:

The prerequisite agent must turn on the remote Command support parameters: Enableremotecommands=1 (need to restart the agent) does not support active mode agent, is from the server to the agent remote mode does not support proxy mode can execute multiple commands in one operation, Add a new remote command to the remote command can contain macros Zabbix the user must have Execute permissions on the command, if no sudo can be configured with no password, the agent side of the firewall allows the link from the packet Zabbix will not detect whether the command is successful, just execute the command

Alarm escalation Mechanism

Refers to the sending of echelon (or execution of commands)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/54/wKiom1W2RriQAnonAAPedn2fMEw167.jpg "title=" Firefox _ 2015-07-27t14-56-22.320z.png "alt=" Wkiom1w2rriqanonaapedn2fmew167.jpg "/>


This is the Echelon,

1-0 refers to knowing that the status has changed to OK and has been sending e-mails to testusergroup at intervals of 3600s

4 means if there is no OK after 3 hours then perform remote commands

5-9 means if the fourth step is not OK then do 5-9 is the interval 90s to Zabbix administrators e-mail

If 5-9 is done, it's not OK, then just 1-0.




This article from "Yun Weibang" blog, declined reprint!

Zabbix Action Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.