Zabbix Documentation 1.8

3.04.04.4 (current)| In development:5.0 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


Sidebar

api:alert

Alert

Methods

Class containing methods for operations with Alerts.

MethodsDescription
get() Get alert details

Object details

The table contains complete list of Alert attributes.

ParameterTypeDescriptionDetails
alertidintegerAlert ID
actionidintegerAction ID
eventidintegerEvent ID
useridintegerUser ID
clockintegerDate Unix timestamp
mediatypeidintegerMadia type ID
sendtostringAddress
subjectstringAlert subject
messagestringAlert message
statusintegerAlert status
retriesintegerRetries made to send
errorstringError details in case if sending failed

Common tasks

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

TaskHOWTO
Remove a bunch of alerts Use method alert.delete with array of Alert objects
Retrieve alert details by Alert IDs Use method alert.get with parameter alertids
Retrieve alerts details by some period Use method alert.get with parameters time_from and time_till