Creating maintenance periods as a Zabbix user
It used to not be possible to schedule maintenance periods as a Zabbix user, which is why we created these scripts. In Zabbix 6, we can actually make it possible by using user roles, but these scripts are still relevant to provide quick access to maintenance creation. For some companies, this may be very useful, to limit the number of navigation actions required to do things using the frontend. In this recipe, I will show you just how to work with this Python script.
Getting ready
For this recipe, all we are going to need is our Zabbix server, some knowledge of Python, and some knowledge of the Zabbix API.
How to do it…
- First, let's log in to our Zabbix server CLI and create a new directory:
mkdir /etc/zabbix/frontendscripts
- Change to the new directory:
cd /etc/zabbix/frontendscripts
- Now download the
Public
script from the Opensource ICT Solutions GitHub:wget https://github.com/OpensourceICTSolutions/zabbix...