[mrtg] Re: CPU utilization graphs
Jerry Heidtke
jheidtke at fmlh.edu
Thu Jan 2 17:17:39 MET 2003
The OID's you are trying to graph aren't supported on a standard W2K
installation. They require the installation of the perfmon snmp extensions,
which isn't supported by Microsoft at all on W2K, and isn't supported
anymore by Microsoft on NT.
If these servers are from a major manufacturer such as Compaq, IBM, Dell,
etc. your best option is to use the hardware management agent OID's provided
by the manufacturer. For example, for a Compaq server running the Insight
Management agents, you could use a target line like:
MaxBytes[_]: 100
WithPeak[_]: ymw
Unscaled[_]: ymwd
Suppress[_]:
Options[_]: growright, gauge, withzeroes, nopercent
YTics[_]: 10
ShortLegend[_]: % CPU
YLegend[_]: Processor Load
LegendI[_]: CPU % 5 Min:
LegendO[_]: CPU % 1 Hr:
Legend1[_]: Processor Load % 5 Min Ave.
Legend2[_]: Processor Load % 1 Hr Ave.
Legend3[_]: Peak Processor Load % 5 Min Ave.
Legend4[_]: Peak Processor Load % 1 Hr Ave.
# CPU util. thru CIM mibcpqHoCpuUtilFiveMin and cpqHoCpuUtilHour
# One target per CPU
Target[CPU0]:
.1.3.6.1.4.1.232.11.2.3.1.1.3.0&.1.3.6.1.4.1.232.11.2.3.1.1.5.0:
Title[CPU0]: Processor Load Statistics for Processor 0 on
PageTop[CPU0]: Load Statistics for Processor 0 on
If using these agents is not an option, then for W2k you could use the Host
Resources MIB statistics. The CPU stat is more limited, giving the average
over the past minute. The OID for the first CPU is .1.3.6.1.2.1.25.3.3.1.2.1
Jerry
-----Original Message-----
From: Kenneth Falor [mailto:kfalor at bellgroup.com]
Sent: Thursday, January 02, 2003 10:06 AM
To: MRTG forum (E-mail)
Subject: [mrtg] CPU utilization graphs
Hello everyone, Happy New Year.
This is my first post so please be gentle!
I have been using MRTG to monitor my WAN traffic for 4 months without any
issues. What a great tool! Now i want to use it to graph CPU and
(eventually) disk access times on my WIN2K servers. I have been reading as
much information as i can find on the web but i always come back to the same
error messages:
WARNING: Skipping Update of localhost.processorload, outlast is not defined
WARNING: Skipping Update of localhost.processorload, inlast is not defined
ERROR: Target[localhost.processorload][_OUT_] ' $$target[0]{$mode} ' did not
eval into defined data.
ERROR: Target[localhost.processorload][_IN_] ' $$target[0]{$mode} ' did not
eval into defined data.
WARNING: skipping because at least the query for
.1.3.6.1.4.1.311.1.1.3.1.1.2.1.4.1.48 on localhost did not succeed.
SNMPGET Problem for .1.3.6.1.4.1.311.1.1.3.1.1.2.1.4.1.48
.1.3.6.1.4.1.311.1.1.3.1.1.2.1.5.1.48 sysUptime sysName on
<BellGrouper>@localhost
SNMP Error: no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "<BellGrouper>"
request ID: -1017488418
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1).
I used a small program called snmputilg.exe to get the relevant OID's, and
here is my config file:
Workdir: C:\Inetpub\Support_Root\MRTG
Htmldir: C:\Inetpub\Support_Root\MRTG
# Imagedir: C:\Inetpub\Support_Root\MRTG
# Logdir: C:\Inetpub\Support_Root\MRTG
# Icondir: /images/
Options[_]: growright,bits
RunAsDaemon: yes
Interval: 5
#---------------------------------------------------------------
#
# NT Processor Utilization
#
YLegend[localhost.processorLoad]: % Utilization
WithPeak[localhost.processorLoad]: ymw
XSize[localhost.processorLoad]: 300
Options[localhost.processorLoad]: growright, gauge
Target[localhost.processorLoad]:
.1.3.6.1.4.1.311.1.1.3.1.1.2.1.4.1.48&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.5.1.48:
<BellGrouper>@localhost
MaxBytes[localhost.processorLoad]: 523444000
ShortLegend[localhost.processorLoad]: %
Legend1[localhost.processorLoad]: Proc Load in next minute
Legend2[localhost.processorLoad]: Proc Load in next minute
Legend3[localhost.processorLoad]: Maximal 5 Minute Proc Load
Legend4[localhost.processorLoad]: Maximal 5 Minute Proc Load
LegendI[localhost.processorLoad]: Load:
LegendO[localhost.processorLoad]: Load:
PageTop[localhost.processorLoad]: <H1>Processor Utilization
</H1>
<TABLE>
<TR><TD>System:</TD><TD>Terminal server 2</TD></TR>
<TR><TD>Maintainer:</TD><TD>Kenneth Falor</TD></TR>
<TR><TD>Processor Load
MIB:</TD><TD>.1.3.6.1.4.1.311.1.1.3.1.1.2.1.4.1.48</TD></TR>
</TABLE>
For the moment i am trying to get it working on the localhost, but it fails
the same way on other servers. SNMP is running in all cases.
Please help, i have been banging my head on this for a week.
Kenneth Falor
IT Operations
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list