2022 Zabbix中国峰会
2022 Zabbix中国峰会

3 Jabber

3 Jabber

概述

Overview

Zabbix支持发送Jabber消息的事件通知。

Zabbix supports sending Jabber messages.

发送通知时,Zabbix首先尝试查找Jabber SRV记录,如果失败,则会使用该域的地址记录。在Jabber SRV记录中,选择具有最高优先级和最大权重的记录。 如果失败,则不会尝试其它记录。

When sending notifications, Zabbix tries to look up the Jabber SRV record first, and if that fails, it uses an address record for that domain. Among Jabber SRV records, the one with the highest priority and maximum weight is chosen. If it fails, other records are not tried.

要将Jabber配置为消息的传递通道,您需要将Jabber配置为媒体类型,并为用户输入相应的地址。

To configure Jabber as the delivery channel for messages, you need to configure Jabber as the media type and enter the respective addresses for the users.

配置

Configuration

将Jabber配置为媒介类型:

To configure Jabber as the media type:

  • 进入管理 - >媒介类型
  • 点击 创建媒介类型 (或者在预定义的媒体类型列表中单击// Jabber //)
  • Go to Administration → Media types
  • Click on Create media type (or click on Jabber in the list of pre-defined media types).

媒介类型属性:

The Media type tab contains general media type attributes:

参数 说
Description 媒介类型的名称.
Type 选择Jabber为媒介类型.
Jabber identifier 输入Jabber标识符.
Password 输入Jabber密码.
Parameter Description
Description Name of the media type.
Type Select Jabber as the type.
Jabber identifier Enter Jabber identifier.
Password Enter Jabber password.

Options标签页包含了所有告警媒介常见的配置

The Options tab contains alert processing settings that are common for all media types.

用户媒介

User media

为用户分配Jabber地址:

To assign a Jabber address to the user:

  • 进入 管理 - >用户
  • 打开用户属性窗体
  • 在媒介标签中,点击Add
  • Go to Administration → Users
  • Open the user properties form
  • In Media tab, click on Add

用户媒介属性:

User media attributes:

参数 说
Type 选择 Jabber 作为媒介类型.
Send to 指定发送消息的地址.
When active 您可以限制邮件发送的时间,例如仅限工作日(1-5,09:00-18:00).格式说明参见时间段规格 页面.
Use if severity 勾选复选框(Not classified/Information/Warning/Average/High/Disaster),标识您要接收通知的严重性.
Status 用户媒介的状态
Enabled - 使用中.
Disabled - 禁用.
Parameter Description
Type Select Jabber as the type.
Send to Specify the address to send messages to.
When active You can limit the time when messages are sent, for example, the working days only (1-5,09:00-18:00).
See the Time period specification page for description of the format.
Use if severity Mark the checkboxes of trigger severities that you want to receive notifications for.
Note that the default severity ('Not classified') must be checked if you want to receive notifications for non-trigger events.
After saving, the selected trigger severities will be displayed in the corresponding severity colours while unselected ones will be greyed out.
Status Status of the user media.
Enabled - is in use.
Disabled - is not being used.