Discussion:
CPU monitoring with MRTG
(too old to reply)
Pat ACT
2008-07-30 04:56:28 UTC
Permalink
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:
# 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:***@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:
[***@sitemanager ]$ head -1 no-tdc.cpu.log
1217393401 50 50
[***@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
[***@sitemanager ]$

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

Any ideas would be most appreciated.

Thanks,

Pat Grogan
Niels Baggesen
2008-07-30 17:19:46 UTC
Permalink
Post by Pat ACT
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.
# Active CPU Measurement
MaxBytes[site.cpu]: 100
Options[site.cpu]: growright,nopercent,nolegend
If the value returned is really the load in %, you should add gauge to
your options.

/Niels
--
Niels Baggesen -- @home -- Ã…rhus -- Denmark -- ***@baggesen.net
The purpose of computing is insight, not numbers -- R W Hamming
Loading...