[mrtg] Windows Server MRTG Problems

banderson benander at mtu.edu
Tue Oct 6 20:15:53 CEST 2009

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 .
(all results removed due to length)

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

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.

More information about the mrtg mailing list