[mrtg] Problem with CPU Graphing with MRTG

Pat Grogan patgrogan at grogotech.bpa.nu
Wed Jul 30 07:11:03 CEST 2008


I am new to mrtg, but despite that I have managed to get mrtg to display
nearly all the data I need. However when it comes to CPU I unable to get any
data displaying in my graph.

Here is my mrtg configuration for the cpu measurement. I put this together
from a couple of different examples I found on the internet. I have repeated
the same OID twice as I only want to graph the single figure:

# Active CPU Measurement
Target[site.cpu]:
1.3.6.1.4.1.3224.16.1.2.0&1.3.6.1.4.1.3224.16.1.2.0:community at site
MaxBytes[site.cpu]: 100
Options[site.cpu]: growright,nopercent,nolegend
Title[site.cpu]: CPU Load
PageTop[site.cpu]: <H1>Active CPU Load %</H1>
Unscaled[site.cpu]: ymwd
ShortLegend[site.cpu]: %
YLegend[site.cpu]: CPU Utilization
Legend1[site.cpu]: Active CPU in % (Load)


When I check the log file, the top line has an accurate figure:
[mrtg at sitemanager ]$ head -1 site.cpu.log
1217393401 50 50
[mrtg at sitemanager ]$ snmpget -v 1 -c community site
1.3.6.1.4.1.3224.16.1.2.0 SNMPv2-SMI::enterprises.3224.16.1.2.0 = INTEGER:
50 
[mrtg at sitemanager ]$

However I never see any of the data displayed on the graph.

Any ideas would be most appreciated.

Thanks,

Pat Grogan



More information about the mrtg mailing list