问题是由Zabbix服务器创建的,不能通过API进行修改。
问题对象拥有以下属性
Property | Type | Description |
---|---|---|
eventid | string | 问题事件的ID |
source | integer | 问题事件类型。 可能的值: 0-触发器创建的时间 3-内部事件 |
object | integer | 与问题事件相关的对象类型。 触发器时间可能的值: 0-触发器 内部事件可能的值: 0-触发器 4-监控项 5-LLD规则 |
objectid | string | 关联对象的ID。 |
clock | timestamp | 问题事件创建的时间。 |
ns | integer | 问题事件创建的纳秒时间。 |
r_eventid | string | 恢复时间的ID。 |
r_clock | timestamp | 恢复事件创建的时间。 |
r_ns | integer | 恢复事件创建的纳秒时间。 |
correlationid | string | 事件被全局的关联规则恢复,关联规则的ID。 |
userid | string | 手动关闭问题的用户ID。 |
name | string | 解决问题名称。 |
acknowledged | integer | 问题知晓状态 可能的值: 0-不知道 1-知道 |
severity | integer | 问题当前级别 可能的值: 0-未定义 1-信息 2-警告 3-一般严重 4-严重 5-灾难 |
suppressed | integer | 是否抑制问题。 可能的值: 0 - 问题是一个正常状态; 1 - 问题被抑制 |
opdata | string | 使用扩展宏的操作数据。 |
urls | array of Media type URLs | 主动媒介的URLS 。 |
Problems are created by the Zabbix server and cannot be modified via the API.
The problem object has the following properties.
Property | Type | Description |
---|---|---|
eventid | string | ID of the problem event. |
source | integer | Type of the problem event. Possible values: 0 - event created by a trigger; 3 - internal event. |
object | integer | Type of object that is related to the problem event. Possible values for trigger events: 0 - trigger. Possible values for internal events: 0 - trigger; 4 - item; 5 - LLD rule. |
objectid | string | ID of the related object. |
clock | timestamp | Time when the problem event was created. |
ns | integer | Nanoseconds when the problem event was created. |
r_eventid | string | Recovery event ID. |
r_clock | timestamp | Time when the recovery event was created. |
r_ns | integer | Nanoseconds when the recovery event was created. |
correlationid | string | Correlation rule ID if this event was recovered by global correlation rule. |
userid | string | User ID if the problem was manually closed. |
name | string | Resolved problem name. |
acknowledged | integer | Acknowledge state for problem. Possible values: 0 - not acknowledged; 1 - acknowledged. |
severity | integer | Problem current severity. Possible values: 0 - not classified; 1 - information; 2 - warning; 3 - average; 4 - high; 5 - disaster. |
suppressed | integer | Whether the problem is suppressed. Possible values: 0 - problem is in normal state; 1 - problem is suppressed. |
opdata | string | Operational data with expanded macros. |
urls | array of Media type URLs | Active media types URLs. |
问题标签对象具有以下属性。
Property | Type | Description |
---|---|---|
tag | string | 问题标签名字. |
value | string | 问题标签值. |
具有媒体类型url的对象具有以下属性。
Property | Type | Description |
---|---|---|
name | string | 媒介类型定义 URL 名称. |
url | string | 媒介类型定义 URL 值. |
结果将只包含具有启用事件菜单项的活动媒体类型的条目。属性中使用的宏将被展开,但如果其中一个属性包含未展开的宏,则结果中将排除这两个属性。 Supported macros described on page.