Install LibreNMS on CentOS 7 Minimal

Configure snmpd

Configure snmpd

Copy the example config

cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf

Confirm the overwrite

vi /etc/snmp/snmpd.conf

Edit the text which says RANDOMSTRINGGOESHERE and set your own community string.

Grab some more SNMP data

curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
chmod +x /usr/bin/distro

Enable auto-start and restart snmpd

systemctl enable snmpd
systemctl restart snmpd

Configure LogRotate for LibreNMS

LibreNMS keeps logs in /opt/librenms/logs. Over time these can become large and be rotated out. To rotate out the old logs you can use the provided logrotate config file:
cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms

Once this is all done. Reboot your system.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*