Graphing Data With SNMP and MRTG

Notes:

  • Had to install the extra MIBs with ``
  • Data is always in integer format. If you want decimals you have to use Factor
  • Watch your MaxBytes! If a value goes above that, MRGT will assume it was an error and either make it a 0 or not display it at all.
  • How to check an OID with SNMP: snmpget -v 2c localhost -c public .1.3.6.1.2.1.25.1.21
  • I put the entire flow of Updating MRTGs into a single script to avoid race conditions /usr/local/bin/update_values_and_run_mrtg
  • APCUPSD Getting Started: http://www.anites.com/2013/09/monitoring-ups.html
  • MRTG is writing to /www/mrgt on the Pi, but NGINX just points to that as the root.

Helpful Links: