[mrtg] Windows Server MRTG Problems

Mersberger, Robert robert.mersberger at goldenliving.com
Tue Oct 6 22:35:38 CEST 2009

 Try this at your server

This is what I use for cpu on a windows 2000 server.

Try doing a snmpget on the above OID to be sure it is what you want in your config.

good luck.

-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch [mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of banderson
Sent: Tuesday, October 06, 2009 1:16 PM
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Windows Server MRTG Problems

Setup:  Windows Server 2008 running MRTG & SNMP service
           Windows Server 2008 running SNMP service

To start I'm trying to monitor CPU usage from another server. When I try to run MRTG on the following config file this is what happens:

# cfgmaker --global "WorkDir: C:\MRTG" --output c:\mrtg\cfg\server.cfg
public at

HtmlDir: C:\mrtg\MRTGhtml\server
ImageDir: c:\mrtg\MRTGhtml\server\images
LogDir: c:\mrtg\MRTGhtml\server\data

EnableIPv6: no
### CPU

Target[]: . at
MaxBytes[]: 100
Title[]: CPU Utilization (average)
PageTop[]: <h1>CPU Utilization</h1>
Options[]: growright,nopercent
YLegend[]: CPU Utilization
ShortLegend[]: %
LegendI[]:&nbsp;CPU Utilization (percentage)&nbsp

This is the error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID:
SNMPv1_Session (remote host: "" [].161)
                  community: "public"
                 request ID: 870759555
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
at c:/mrtg/bin\..\lib\mrtg2/SNMP_util.pm line 492 SNMPGET Problem for ifInOctets.0 ifOutOctets.0 sysUptime sysName on public at at c:\mrtg\bin\mrtg line 2202
2009-10-06 12:26:49: ERROR: Target[][_IN_] ' $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.) or string at (eval 18) line 1.
2009-10-06 12:26:49: ERROR: Target[][_OUT_] ' $target->[0]{$mode} ' (warn): Use of uninitialized value in concatenation (.
) or string at (eval 19) line 1.
2009-10-06 12:26:49,

To Troubleshoot I started by confirming SNMP calls:

C:\snmpwalk -v 2c -c public .
HOST-RESOURCES-MIB::hrSWRunPerfCPU.4 = INTEGER: 190031 (all results removed due to length)

C:\snmpgetnext -v 2c -c public . CPU

snmpwalk and snmpget both work but snmpget does not

C:\snmpget -v 2c -c public . Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: HOST-RESOURCES-MIB::hrSWRunPerfCPU

Thanks for the help,

View this message in context: http://n2.nabble.com/Windows-Server-MRTG-Problems-tp3776779p3776779.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.

mrtg mailing list
mrtg at lists.oetiker.ch

Please consider the environment before printing this e-mail.

This e-mail message and any attachment(s)  (collectively,
 this 'Email') are intended only for the confidential use of
the recipient(s) named above. If the reader of this message
is not the intended recipient named above or an agent
responsible for delivering it to the intended recipient
named above, you have received this Email in error.
Please notify the sender immediately and permanently delete
this Email and any copies thereof.

More information about the mrtg mailing list