LibreNMS is an incredibly powerful open source Network Management System (NMS) tool made with Laravel. Packed in it’s punch is it’s ability to interrogate Proxmox servers and automatically display traffic usage for each guest VM.
The LibreNMS documentation is exceptional – very much a system administrator’s dream and on par with the other magnificent Laravel documentation.
We’ve taken the best from their documentation and summarized it in this article.
When setting up a new Proxmox server with LibreNMS there is a Proxmox server component, and of course the LibreNMS component.
On the Proxmox Server
apt install libpve-apiclient-perl wget https://raw.githubusercontent.com/librenms/librenms-agent/master/agent-local/proxmox -O /usr/local/bin/proxmox chmod +x /usr/local/bin/proxmox echo extend proxmox /usr/local/bin/proxmox >> /etc/snmpd/snmpd.conf service snmpd restart
On the LibreNMS Server
$config['enable_proxmox'] = 1; cp /opt/librenms-agent/agent-local/proxmox /usr/lib/check_mk_agent/local/proxmox chmod +x /usr/lib/check_mk_agent/local/proxmox cp /opt/librenms-agent/[email protected] /opt/librenms-agent/check_mk.socket /etc/systemd/system systemctl daemon-reload systemctl enable check_mk.socket && systemctl start check_mk.socket
In the LibreNMS UI:
Activate the librenms-agent and proxmox application flag for the device you are monitoring.
Now a new menu will appear called “Apps” that shows you each VM guest’s usage.