LibreNMS - snmp extend proxmox


Verify you have installed:

apt install libpve-apiclient-perl

NginX LibreNMS script

Get the script and make it executable:

wget -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

Unix Agent

Get the UNIX agent:

cd /opt/ && git clone && cd librenms-agent

Deploy the Check_mk and SystemD files:

cp check_mk_agent /usr/bin/check_mk_agent && cp check_mk@.service check_mk.socket /etc/systemd/system

Create the relevant directories and change user:

mkdir -p /usr/lib/check_mk_agent/plugins /usr/lib/check_mk_agent/local && chmod -R Debian:snmp:Debian-snmp /usr/lib/check_mk_agent

Enable the check_mk service:

systemctl enable check_mk.socket && systemctl start check_mk.socket

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