[mrtg] Re: CPU utilization graphs
Kenneth Falor
kfalor at bellgroup.com
Fri Jan 3 19:18:19 MET 2003
Thank You for your help guys, It turns out (surprise surprise) that I am
an idiot. For some stupid ass reason my target read:
Target[CPU0]:
.1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.1:<bellgrouper>@localh
ost
instead of
Target[CPU0]:
.1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.1:bellgrouper at localhos
t
Don't you just love things like this?
Now I need to find a source for the OID's for all my Intel mobo's,
snmputilg.exe can't find any OID's for CPU stats and the above target
does not work. At least the basics are working now though! Thanks
again.
Kenneth Falor, MCP, A+
IT Operations
-----Original Message-----
From: Jerry Heidtke [mailto:jheidtke at fmlh.edu]
Sent: Thursday, January 02, 2003 12:55 PM
To: Kenneth Falor; MRTG forum (E-mail)
Subject: RE: [mrtg] Re: CPU utilization graphs
If I were you, I would start at
http://www.wtcs.org/snmp4tpc/default.htm.
However, if snmputilg.exe is saying that these are valid OID's, you
probably already have the perfmon snmp extension installed. In that
case, your problem is probably lack of an instance number. Try adding a
.0 or .1 to the end of the OID's you are using.
For a quick solution for graphing a single CPU, just use this as a
target
line:
Target[CPU0]:
.1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.1:community at server
MS's preferred method of remotely monitoring system performance doesn't
use snmp at all.
Jerry
-----Original Message-----
From: Kenneth Falor [mailto:kfalor at bellgroup.com]
Sent: Thursday, January 02, 2003 12:38 PM
To: MRTG forum (E-mail)
Subject: [mrtg] Re: CPU utilization graphs
Jerry thanks for the response,
Unfortunately most of my servers are not Name brand machines. How do I
make my MRTG config file know that it must use the Host Resources MIB
statistics?
The OID's that I used were the ones returned by snmputilg.exe, is it
possible that these are wrong even if they returned correctly?
I have tried the suggested idea's and I still get the same errors. Is
there a help doc (for dummies!) that outlines EXACTLY what I need to
install, start, run, turn off on so on to make this work. I have found
numerous documents, but they all see to start in the middle and I think
that I have missed a step or two in the beginning.
Kenneth Falor, MCP, A+
IT Operations
-----Original Message-----
From: Jerry Heidtke [mailto:jheidtke at fmlh.edu]
Sent: Thursday, January 02, 2003 10:18 AM
To: Kenneth Falor; MRTG forum (E-mail)
Subject: RE: [mrtg] CPU utilization graphs
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.
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/x-vcard
-- Desc: Kenneth Falor.vcf
-- Size: 519 bytes
-- URL : http://www.ee.ethz.ch/~slist/pantomime/07-Kenneth%20Falor.vcf
--
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.
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/x-vcard
-- Desc: Kenneth Falor.vcf
-- Size: 519 bytes
-- URL : http://www.ee.ethz.ch/~slist/pantomime/08-Kenneth%20Falor.vcf
--
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