LibreNMS - snmp extend proxmox

From Wiki.IT-Arts.net
Revision as of 10:32, 3 May 2020 by imported>Z (Created page with "Category:Post-It '''Verify you have installed:''' <nowiki> apt install libpve-apiclient-perl</nowiki> = NginX LibreNMS script = Get the script and make it executab...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



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