The new commands for managing maintenance periods are not a full implementation of the maintenance functionality that Zabbix has. A full implementation would have complicated these commands too much and not everyone needs all the options available. To define advanced maintenance definitions you still have to use the Zabbix web interface.

A maintenance job for a machine or group of machines is configured in Zabbix by defining a maintenance definition containing one or more maintenance periods.

Our implementation of this functionality in Zabbix-CLI creates a maintenance definition with a maintenance period which equals the active period of the maintenance definition itself. This simplifies a lot the handling of maintenance jobs via Zabbix-CLI.

For standard definitions you can use these commands via Zabbix-CLI:

create_maintenance_definition

Use the command "help create_maintenance_definition" in zabbix-CLI for details: