Forked from axemann/librenms_linux_mon_setup.txt
Last active
October 23, 2018 21:46
-
-
Save dfiel/6385c7c37b99b20060fe0a1efcf3c706 to your computer and use it in GitHub Desktop.
LibreNMS Linux server monitoring setup (Ubuntu)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install snmpd -y | |
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old | |
cat > /etc/snmp/snmpd.conf << EOF | |
# Change public below to your preferred SNMP community string | |
com2sec readonly default public | |
group MyROGroup v2c readonly | |
view all included .1 80 | |
access MyROGroup "" any noauth exact all none none | |
sysLocation Virtual | |
sysContact David Fiel <[email protected]> | |
#Distro Detection | |
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro | |
EOF | |
curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro | |
chmod +x /usr/bin/distro | |
service snmpd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install snmpd -y | |
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old | |
sudo su - | |
sudo cat > /etc/snmp/snmpd.conf << EOF | |
# Change public below to your preferred SNMP community string | |
com2sec readonly default public | |
group MyROGroup v2c readonly | |
view all included .1 80 | |
access MyROGroup "" any noauth exact all none none | |
sysLocation Virtual | |
sysContact David Fiel <[email protected]> | |
#Distro Detection | |
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro | |
EOF | |
exit | |
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