[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:

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

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

EnableIPv6: no
### CPU 

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


----------------------------------------------------------------
This is the error:
----------------------------------------------------------------
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.0)
SNMPv1_Session (remote host: "192.168.1.5" [192.168.1.5].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 192.168.1.5::::::v4only
at c:\mrtg\bin\mrtg line 2202
2009-10-06 12:26:49: ERROR: Target[192.168.1.5-cpu][_IN_]
'1.3.6.1.2.1.25.5.1.1.1. $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[192.168.1.5-cpu][_OUT_]
'1.3.6.1.2.1.25.5.1.1.1. $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 192.168.1.5 .1.3.6.1.2.1.25.5.1.1.1
HOST-RESOURCES-MIB::hrSWRunPerfCPU.1 = INTEGER: 327894250
HOST-RESOURCES-MIB::hrSWRunPerfCPU.4 = INTEGER: 190031
(all results removed due to length)

C:\snmpgetnext -v 2c -c public 192.168.1.5 .1.3.6.1.2.1.25.5.1.1.1
CPU
HOST-RESOURCES-MIB::hrSWRunPerfCPU.1 = INTEGER: 327924320

snmpwalk and snmpget both work but snmpget does not

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




Thanks for the help,

-Ben
-- 
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