Table of Contents

> Event object

The following objects are directly related to the event API. 以下对象与 event[事件] API直接相关

Event

事件

Events are created by the Zabbix server and cannot be modified via the API.

事件是由Zabbix server创建,并且不能通过API进行修改。

The event object has the following properties. 事件对象具有以下属性:

Property Type Description
eventid string ID of the event.
source integer Type of the event.

Possible values:
0 - event created by a trigger;
1 - event created by a discovery rule;
2 - event created by active agent auto-registration;
3 - internal event.
object integer Type of object that is related to the event.

Possible values for trigger events:
0 - trigger.

Possible values for discovery events:
1 - discovered host;
2 - discovered service.

Possible values for auto-registration events:
3 - auto-registered host.

Possible values for internal events:
0 - trigger;
4 - item;
5 - LLD rule.
objectid string ID of the related object.
acknowledged integer Whether the event has been acknowledged.
clock timestamp Time when the event was created.
ns integer Nanoseconds when the event was created.
name string Resolved event name.
value integer State of the related object.

Possible values for trigger events:
0 - OK;
1 - problem.

Possible values for discovery events:
0 - host or service up;
1 - host or service down;
2 - host or service discovered;
3 - host or service lost.

Possible values for internal events:
0 - "normal" state;
1 - "unknown" or "not supported" state.

This parameter is not used for active agent auto-registration events.
severity integer Event current severity.

Possible values:
0 - not classified;
1 - information;
2 - warning;
3 - average;
4 - high;
5 - disaster.
r_eventid string Recovery event ID
c_eventid string Problem event ID who generated OK event
correlationid string Correlation ID
userid string User ID if the event was manually closed.
属性 类 描述
eventid string 事件的ID
source integer 事件的类型

可能的值:
0 - 由触发器创建的事件;
1 - 由发现规则创建的事件;
2 - 活动代理自动注册的事件;
3 - 内部事件.
object integer 与事件相关的对象类型.

触发器事件的可能值:
0 - 触发器.

发现事件的可能值:
1 - 发现主机;
2 - 发现服务.

自动注册事件的可能值:
3 - 自动注册的主机.

内部事件的可能值:
0 - 触发器;
4 - 监控项;
5 - 低级别发现(LLD)规则.
objectid string 相关对象的ID.
acknowledged integer 事件是否被确认.
clock timestamp 事件的创建时间.
ns integer 事件的创建时间(纳秒).
name string 已解决事件的名称.
value integer 相关对象的状态.

触发器事件的可能值:
0 - 正常;
1 - 异常.

发现事件的可能值:
0 - 主机或服务正常;
1 - 主机或服务故障;
2 - 主机或服务已发现;
3 - 主机或服务丢失.

内部事件的可能值:
0 - "正常"状态;
1 - "未知"或"不支持"状态.

此参数不用于活动代理自动注册事件.
severity integer 当前事件的严重等级.

可能值:
0 - 未分类;
1 - 信息;
2 - 警告;
3 - 一般严重;
4 - 严重;
5 - 灾难.
r_eventid string 恢复事件的ID
c_eventid string 生成OK事件的问题事件ID
correlationid string 关联ID
userid string 手动关闭事件的用户的ID.