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 method allows you to retrieve maintenance 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
maintenanceids array Maintenance IDs
editable integer only with read-write permission. Ignored for SuperAdmins
filter array Optional filter by maintenance fields
search array Return maintenances by any given maintenance object field pattern
startSearch integer Search maintenances field pattern only in start of the field
excludeSearch integer Exclude from result, maintenances 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_groups string Select host groups Values: shorten, refer, extend
select_hosts string Select hosts Values: shorten, refer, extend
countOutput integer Count maintenances, return the number of maintenances 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 maintenance field Values: maintenanceid, name
sortorder string Sort order Values: ASC, DESC
limit int max number of maintenance objects to return


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


Get maintenances details by maintenance name pattern "server" and limit output to two maintenances:

           "search": {
           "output": "extend",
           "select_hosts": "refer",
           "select_groups": "refer",
           "limit": 2

Retrieved maintenance details:

           "name":"Zabbix server maintenance",