Skip to content

Monitoring of Proxmox with Zabbix via external script using curl and authentication via Api Token

Notifications You must be signed in to change notification settings

Full-Monitoring/proxmox_zabbix_api

Repository files navigation

Proxmox + Zabbix + Grafana

Monitoring of Proxmox with Zabbix via external script using curl and authentication via Api Token

🏗️ UNDER CONSTRUCTION 🏗️

4Help: Saulo Costa - Telegram

Grafana

Dashboard

print

print

print

Support links

Proxmox VE API

How to ignore invalid and self signed ssl connection errors with curl

remontti/Zabbix-Templates

Proxmox api-viewer

Regex101.com

Dependencies and Script

# Installation of curl
apt install curl
# Access the directory...
cd /usr/lib/zabbix/externalscripts
# Create a script with the name "proxmox"
nano proxmox

Copy and paste the following script

#! /usr/bin/bash
curl -H "Authorization: PVEAPIToken=$1!$2=$3" https://$4:$5/api2/json/cluster/resources/ -k --silent

Save and exit file

chown zabbix. /usr/lib/zabbix/externalscripts/proxmox
chmod +x proxmox

Example to test the script

# Ex:
./proxmox usuário token_id secret ip_do_proxmox porta

# Ficará assim...
./proxmox root@pam dnriMrAAMBfacHdU ef43035e-1bd7-4e59-9469-68a290084a7d 172.33.255.2 8006

If everything works out, it is expected that it will be returning a json with the data of the virtual machines and PVEs

Telegram

alert

Zabbix

Template

Itens zabbix Status zabbix