LibreNMS - snmp extend proxmox: Difference between revisions

From Wiki.IT-Arts.net
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...")
 
imported>Z
No edit summary
Line 55: Line 55:
* https://docs.librenms.org/Extensions/Proxmox/
* https://docs.librenms.org/Extensions/Proxmox/
* https://docs.librenms.org/Extensions/Applications/#proxmox
* https://docs.librenms.org/Extensions/Applications/#proxmox
* https://docs.librenms.org/Extensions/Applications/






----
----

Revision as of 11:15, 3 May 2020



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