Skip to content

Instantly share code, notes, and snippets.

@homelaber
Created November 10, 2015 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save homelaber/b85faf2a0c5907ce6c33 to your computer and use it in GitHub Desktop.
Save homelaber/b85faf2a0c5907ce6c33 to your computer and use it in GitHub Desktop.
apt-get install snmp snmpd lm-sensors snmp-mibs-downloader snmptrapd
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.ori
echo "view all included .1" >> /etc/snmp/snmpd.conf
echo "rocommunity homelab #nome da community" >> /etc/snmp/snmpd.conf
echo "sysLocation homelab #local do equipamento" >> /etc/snmp/snmpd.conf
echo "sysContact admin@homelab.srv.br #email de contato do equipamento" >> /etc/snmp/snmpd.conf
service snmpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment