Zabbix Documentation 1.8

2.23.04.0 (current)In development:4.2 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


Sidebar

api:event

Event

Methods

Class containing methods for operations with Events.

MethodsDescription
get() Get event details
acknowledge() Acknowledge events
delete() Delete events

Object details

The table contains complete list of Event attributes.

ParameterTypeDescriptionDetails
eventidintegerEvent ID
sourceinteger Event generation source
objectinteger Event relation object
objectidinteger Related object ID
clockinteger Time of generated event
valueinteger Status
acknowledgedinteger Flag indicating event ack

Field values

Source

ValueType
0 Triggers
1 Network discovery

Value

For triggers
ValueType
0 OK
1 PROBLEM
2 UNKNOWN
For network discovery
ValueType
0 UP
1 DOWN
2 Discovered
3 Lost

Common tasks

The table contains list of common event-related tasks and possible implementation using Zabbix API

TaskHOWTO
Acknowledge an event Use method event.acknowledge with array of Event objects
Remove events Use method event.delete with array of Event IDs
Retrieve event details by Event IDs Use method event.get with parameter eventids
Retrieve events details by Trigger IDs Use method event.get with parameter triggerids