maintenance_create
Creates a maintenance period in Zabbix to suppress alerts during planned maintenance, specifying hosts or groups and a time range.
Instructions
Create a new maintenance period in Zabbix.
Schedules a maintenance window when monitoring alerts are suppressed. Useful for planned upgrades, patching, or system maintenance without triggering false alarms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Maintenance name. | |
| hostids | No | List of specific host IDs to apply maintenance to. | |
| groupids | No | List of host group IDs to apply maintenance to. At least one of groupids or hostids is required. | |
| active_till | Yes | End time (Unix timestamp). | |
| description | No | Optional description explaining the maintenance purpose. | |
| timeperiods | No | When maintenance actually runs, e.g. [{'timeperiod_type': 0, 'start_date': 1735689600, 'period': 3600}]. Required by Zabbix; if omitted, a single one-off period covering active_since to active_till is sent. | |
| active_since | Yes | Start time (Unix timestamp). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||