get_maintenance_windows
List active and upcoming Zabbix maintenance windows to cross-check reported anomalies, identifying planned outages before treating them as new incidents.
Instructions
List Zabbix maintenance windows -- the read counterpart to set_maintenance.
Use this to cross-check anomalies reported by OTHER tools (e.g. device unreachability, AP-offline reports) before treating them as new incidents: a host in an Active window is one Zabbix is currently suppressing new problem notifications for, because someone (or set_maintenance) registered a planned outage covering it.
Windows are grouped Active / Upcoming (and Expired when requested). "Active" means the current time falls inside the window's own time period, not just its outer active_since/active_till frame -- exact for a one-time window (the kind set_maintenance/set_maintenance_for_hosts create). A window with a recurring time period (set up outside this server) is instead evaluated against its outer frame only and labeled "(recurring)", since precise recurrence evaluation isn't implemented.
Times are the MCP server process's local timezone (same caveat as set_maintenance's since/till).
Args: include_expired: Also list windows whose active_till has passed (default False -- set_maintenance never deletes windows, so expired ones accumulate over time and are noise by default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_expired | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |