Skip to content

Instantly share code, notes, and snippets.

@axemann
Last active February 15, 2025 20:18
Show Gist options
  • Select an option

  • Save axemann/c649b2c478fac5a7cd1f5fa2f51edbd7 to your computer and use it in GitHub Desktop.

Select an option

Save axemann/c649b2c478fac5a7cd1f5fa2f51edbd7 to your computer and use it in GitHub Desktop.
LibreNMS Linux server monitoring setup (Ubuntu)
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old
sudo echo # Change RANDOMSTRINGGOESHERE to your preferred SNMP community string \
com2sec readonly default RANDOMSTRINGGOESHERE \
\
group MyROGroup v2c readonly \
view all included .1 80 \
access MyROGroup "" any noauth exact all none none \
\
syslocation Rack, Room, Building, City, Country [GPSX,Y] \
syscontact Your Name <[email protected]> \
\
#Distro Detection \
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro >> /etc/snmp/snmpd.conf
sudo curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
sudo chmod +x /usr/bin/distro
sudo service snmpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment