LibreNMS - snmp extend proxmox
From Wiki.IT-Arts.net
Verify you have installed:
apt install libpve-apiclient-perl
NginX LibreNMS script
Get the script and make it executable:
wget https://raw.githubusercontent.com/librenms/librenms-agent/master/agent-local/proxmox -O /usr/local/bin/proxmox && chmod +x /usr/local/bin/proxmox
sudo Configuration
Adapt your /etc/sudoers with:
Debian-snmp ALL=(ALL) NOPASSWD: /usr/local/bin/proxmox
SNMP Configuration
Adapt your /etc/snmp/snmpd.conf with:
extend proxmox /usr/bin/sudo /usr/local/bin/proxmox
Restart the service.
LibreNMS Configuration
Add to your /opt/librenms/config.php:
# Enable Proxmox Graphs $config['enable_proxmox'] = 1;
Check Command
Adapt the user and path to your configuration:
sudo -u Debian-snmp /usr/bin/sudo /usr/local/bin/proxmox
Sources
- https://docs.librenms.org/Extensions/Proxmox/
- https://docs.librenms.org/Extensions/Applications/#proxmox
- https://docs.librenms.org/Extensions/Applications/