See ... New method / template
Monitoring of Proxmox with Zabbix via external script using curl and authentication via Api Token
4Help: Saulo Costa - Telegram
How to ignore invalid and self signed ssl connection errors with curl
# 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