[mrtg] Problem with CPU Graphing with MRTG
Anson Rinesmith
arinesmith at bigrivertelephone.com
Wed Jul 30 15:01:24 CEST 2008
Since the CPU is not an incrementing counter, I would assume you need a
"gauge" option added to you Options[]. Otherwise the first counter is
accurate and all others will be nominal.
-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch]
On Behalf Of Pat Grogan
Sent: Wednesday, July 30, 2008 12:11 AM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Problem with CPU Graphing with MRTG
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
_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
More information about the mrtg
mailing list