> 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. 事件对象具有以下属性:

PropertyTypeDescription
eventidstringID of the event.
sourceintegerType 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.
objectintegerType 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.
objectidstringID of the related object.
acknowledgedintegerWhether the event has been acknowledged.
clocktimestampTime when the event was created.
nsintegerNanoseconds when the event was created.
namestringResolved event name.
valueintegerState 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.
severityintegerEvent current severity.

Possible values:
0 - not classified;
1 - information;
2 - warning;
3 - average;
4 - high;
5 - disaster.
r_eventidstringRecovery event ID
c_eventidstringProblem event ID who generated OK event
correlationidstringCorrelation ID
useridstringUser ID if the event was manually closed.
属性 类描述
eventidstring事件的ID
sourceinteger事件的类型

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

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

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

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

内部事件的可能值:
0 - 触发器;
4 - 监控项;
5 - 低级别发现(LLD)规则.
objectidstring相关对象的ID.
acknowledgedinteger事件是否被确认.
clocktimestamp事件的创建时间.
nsinteger事件的创建时间(纳秒).
namestring已解决事件的名称.
valueinteger相关对象的状态.

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

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

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

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

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

Media type URLs

Object with media type url have the following properties.

PropertyTypeDescription
namestringMedia type defined URL name.
urlstringMedia type defined URL value.

Results will contain entries only for active media types with enabled event menu entry. Macro used in properties will be expanded, but if one of properties contain non expanded macro both properties will be excluded from results. Supported macros described on page.