Monitoring Proxmox VE: SNMP v2c/v3 and an API token
Sign in to read this lesson
We watch Proxmox VE from two sides. The hypervisor itself (CPU, memory, disk, network) over SNMP, and the virtual machines and containers through the Proxmox API. In this lesson we install snmpd on pve01, open v2c and v3, create a read-only user and an API token in Proxmox and link both templates to one host.
What you will learn
- Proxmox is built on Debian, and the snmpd (net-snmp) package is used for SNMP:
agentaddress udp:10.10.10.40:161,rocommunity ITNlab-RO-26 10.10.10.20. - The v3 user is added with a
createUserline in/var/lib/snmp/snmpd.confwhile snmpd is stopped, androuser zbxmon privis written in/etc/snmp/snmpd.conf. - A separate user and token for the API:
pveum user add zabbix@pve,pveum user token add zabbix@pve monitoring --privsep 1, with thePVEAuditorrole for both the user and the token. - One host, two templates:
Linux by SNMP(the SNMP interface) andProxmox VE by HTTP(macros:{$PVE.URL.HOST},{$PVE.TOKEN.ID},{$PVE.TOKEN.SECRET}). - With Proxmox's own certificate, in the lab
{$HTTP.TLS.VERIFY}=none; in production a trusted certificate is installed and verification stays on.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.