maintenance_get
Retrieve maintenance periods from Zabbix to suppress alerts during planned upgrades or testing. Filter by IDs, host groups, or hosts.
Instructions
Get maintenance periods from Zabbix.
Maintenance windows define periods when monitoring is paused for planned upgrades, maintenance, or testing. Alerts are suppressed during maintenance periods.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of results to skip (for pagination). Requires sortfield to be set. | |
| output | No | extend | |
| hostids | No | List of host IDs to get maintenance for. | |
| groupids | No | List of host group IDs to get maintenance for. | |
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| maintenanceids | No | List of maintenance IDs to get. If empty, returns all maintenance periods. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||