9 事件通知(ZX)

9 Notifications upon events

概述

Overview

假设我们已经配置了一些监控项和触发器,并且由于触发器状态的改变,导致发生一些事件,之后要考虑的就是动作(action)。

Assuming that we have configured some items and triggers and now are getting some events happening as a result of triggers changing state, it is time to consider some actions.

首先,我们不想一直盯着触发器或事件列表。最好是在发生比较严重的事情(如异常)时,接收到通知。另外,当发生问题时,我们希望看到所有相关的人都能收到通知。

To begin with, we would not want to stare at the triggers or events list all the time. It would be much better to receive notification if something significant (such as a problem) has happened. Also, when problems occur, we would like to see that all the people concerned are informed.

这就是为什么发送通知是Zabbix提供的主要动作之一, 可以在特定事件中通知到谁以及什么时间通知。

That is why sending notifications is one of the primary actions offered by Zabbix. Who and when should be notified upon a certain event can be defined.

为了能够发送和接收Zabbix的通知,您必须:

To be able to send and receive notifications from Zabbix you have to:

Actions由conditions和operations组成。总的说来,当条件满足时,执行相应的操作。两个主要操作是发送消息(通知)和执行远程命令。

Actions consist of conditions and operations. Basically, when conditions are met, operations are carried out. The two principal operations are sending a message (notification) and executing a remote command.

对于发现和自动注册创建的事件,可以使用一些其它操作。包括添加或删除主机,链接模板等。

For discovery and auto-registration created events, some additional operations are available. Those include adding or removing a host, linking a template etc.