Graph Linux CPU load across SNMP with MRTG
June 15th, 2007 — maxwellHere’s an example of how to graph CPU load across SNMP using MRTG on Linux. Of course, this implies that you have MRTG running, and SNMP installed and running on Linux hosts. Install net-snmp if you don’t already have SNMP running on the host(s).
Target[host_cpu]: 1.3.6.1.4.1.2021.11.50.0&1.3.6.1.4.1.2021.11.50.0:comm@host + 1.3.6.1.4.1.2021.11.52.0&.1.3.6.1.4.1.2021.11.52.0:comm@host + 1.3.6.1.4.1.2021.11.51.0&.1.3.6.1.4.1.2021.11.51.0:comm@host MaxBytes[host_cpu]: 100 Title[host_cpu]: CPU LOAD PageTop[host_cpu]: <H1>Active CPU Load </H1> Unscaled[host_cpu]: ymwd ShortLegend[host_cpu]: % YLegend[host_cpu]: CPU Utilization Legend1[host_cpu]: Active CPU in % (Load) Legend2[host_cpu]: Legend3[host_cpu]: Legend4[host_cpu]: LegendI[host_cpu]: Active LegendO[host_cpu]: Options[host_cpu]: growright,nopercent
This will give you the entire CPU load, User, System, and Nice in one graph. This is from the net-snmp guide: http://net-snmp.sourceforge.net/tutorial/tutorial-5/mrtg/index.html





