Proxmox Backup Monitoring script for Zabbix
  • Python 83.9%
  • Makefile 14.9%
  • Shell 1.2%
Find a file
François Betscha f780d5cbfd
Merge pull request #6 from numlock1052/task-102_upgrade_backup_monitor_script
Task-102, upgrade script after moving on new server
2021-05-12 00:17:32 +02:00
.vscode Task-102, upgrade script after moving on new server 2021-05-12 00:16:35 +02:00
img First commit 2020-04-26 12:16:13 +02:00
.gitignore First commit 2020-04-26 12:16:13 +02:00
dist.env Task-102, upgrade script after moving on new server 2021-05-12 00:16:35 +02:00
LICENSE Initial commit 2020-04-26 12:09:04 +02:00
main.py Task-102, upgrade script after moving on new server 2021-05-12 00:16:35 +02:00
Makefile Apply pep8 correction 2020-04-28 23:17:34 +02:00
Pipfile Task-102, upgrade script after moving on new server 2021-05-12 00:16:35 +02:00
README.md Apply pep8 correction 2020-04-28 23:17:34 +02:00
requirements.txt Task-102, upgrade script after moving on new server 2021-05-12 00:16:35 +02:00
run.sh First commit 2020-04-26 12:16:13 +02:00

pve-backup-monitor

Proxmox Backup Monitoring script for Zabbix

Create virtual env

python3 -m venv venv

Installation of the script.

Open ssh on target server and type :

    sudo -i
    chmod a+rw /opt
    cd /opt
    git clone ...
    mv pve-backup-monitor pve
    cd pve
    pip install -r requirements.txt
    chmod +x run.sh

Upgrade main.py values :

HOST = 'https://set_proxmox_host_here:8006'
USERNAME = 'set username here !!!!'
PASSWORD = 'set password here !!!!'

Zabbix agent configuration

Add EnableRemoteCommands=1 option

Zabbix configuration

  1. Create new template
  2. Create new application
  3. Add new item, for example: Name : CI-APP-BACKUP
    Type : Zabbix Agent
    Key : system.run[/opt/pve/run.sh CI-APP-BACKUP]
    Applications : select created application
  4. Add new trigger to call the item

Monitoring:


Items:

Item edit:

Item edit preprocessing:


Triggers:

Trigger edit: