Update all Zabbix templates
- Python 3.x + pip
- Zabbix server 6.0.X or 7.0.X
Download scripts:
git clone https://github.com/Udeus/Zabbix-Update-All-Templates.git && cd Zabbix-Update-All-Templates
Install the required libraries:
pip install -r requirements.txt
Debian based systems may show an error message "error: externally-managed-environment".
In this case just install dependencies manually
apt install python3-requests python3-tabulate python3-yaml
Run script:
python main.py --url <zabbix_address_url> --token <zabbix_api_token>
Example:
python main.py --url http://192.168.1.105 --token d36cab4cb00097b11bb97739828aed93ec521858de3e007a2d91a2047ff5a72d
OR:
python main.py
Next type url and token api
Command | Description |
---|---|
help | Show all commands |
template list | Show all templates and ID |
template update | Update one template |
template update all | Update all templates |
backup create | Create backup of one template |
backup create all | Create backup of all templates |
backup list | Show list of all backups |
backup restore | Restore selected backup |
backup delete | Delete selected backup |
about | About script |
exit | Close script |
License: https://github.com/Udeus/Zabbix-Update-All-Templates?tab=GPL-3.0-1-ov-file