This is the documentation page for an unsupported version of Zabbix.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.
Table of Contents


Available since version: 1.8
This function allows you to retrieve alert details based on filtering options. All parameters are optional. If parameter is set in query this option counted as ON, except if parameter is equal to NULL.


Parameter Type Description Details
nodeids array Node IDs
groupids array HostGroup IDs
hostids array Host IDs
alertids array Alert IDs
triggerids array Trigger IDs
eventids array Event IDs
editable integer only with read-write permission. Ignored for SuperAdmins
time_from integer Search alerts from given date Unix timestamp
time_till integer Search alerts till given date Unix timestamp
filter array Optional filter by alert fields
search array Return alerts by any given alert object field pattern
startSearch integer Search alerts field pattern only in start of the field
excludeSearch integer Exclude from result, alerts by given field pattern
searchWildcardsEnabled integer Search pattern in whole field using wildcards 1 - enable, 0 - disable
output string Output options Values: shorten, refer, extend
select_hosts string Select hosts Values: shorten, refer, extend
select_mediatypes string Select mediatypes Values: shorten, refer, extend
select_users string Select users Values: shorten, refer, extend
countOutput integer Count alerts, return number of alerts found
groupCount integer Return the number of results grouped by given IDs
preservekeys integer Return hash instead of array Keys of hash are object IDs
sortfield string Sort by alert field Values: alertid,clock,eventid,status
sortorder string Sort order Values: ASC, DESC
limit int max number of alert objects to return


Parameter Description
result Operation successful. Result will contain array of Alert objects.
error In case of any errors


Get alerts details by trigger IDs and limit output to 10 alerts, return only alert IDS:

           "triggerids": ["100100000010137", "100100000010138"],
           "time_from": 1285077093,
           "time_till": 1285107165,
           "limit": 10

Retrieved alerts details: