Skip to content

Instantly share code, notes, and snippets.

@auycro
Created May 29, 2017 07:30
Show Gist options
  • Save auycro/59c9d0e0e47dafb1305c4fa262664911 to your computer and use it in GitHub Desktop.
Save auycro/59c9d0e0e47dafb1305c4fa262664911 to your computer and use it in GitHub Desktop.
MRTG + SNMP Setting
snmpwalk -v 2c -c public 192.168.xx.xxx 1
cfgmaker [email protected].xx.xxx > /var/www/mrtg/192.168.xx.xxx.cfg
vi /var/www/mrtg/192.168.xx.xxx.cfg
env LANG=C /usr/bin/mrtg /var/www/mrtg/192.168.xx.xxx.cfg
env LANG=C /usr/bin/mrtg /var/www/mrtg/192.168.xx.xxx.cfg
env LANG=C /usr/bin/mrtg /var/www/mrtg/192.168.xx.xxx.cfg
vi /etc/cron.d/mrtg
indexmaker /var/www/mrtg/192.168.xx.xxx.cfg > /var/www/mrtg/192.168.xx.xxx.html
vi /var/www/mrtg/192.168.xx.xxx.html
vi /var/www/mrtg/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment