zabbix_create_maintenance
Create a maintenance period in Zabbix to suppress alerts and control data collection for selected hosts, groups, or problem tags during planned downtime.
Instructions
Create a new maintenance period in Zabbix
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"active_since": "<active_since>",
"active_till": "<active_till>",
"timeperiods": "<timeperiods>"
},
"name": "zabbix_create_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the maintenance period | |
| tags | No | Problem tags to match for maintenance | |
| hostids | No | IDs of hosts to put in maintenance | |
| groupids | No | IDs of host groups to put in maintenance | |
| active_till | Yes | End time of the maintenance period (Unix timestamp) | |
| description | No | Description of the maintenance period | |
| timeperiods | Yes | Time periods when the maintenance should be active | |
| active_since | Yes | Start time of the maintenance period (Unix timestamp) | |
| maintenance_type | No | Type of maintenance (0 - with data collection, 1 - without data collection) |