[mrtg] Windows Server MRTG Problems

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


 Try this 1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.1:public 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:

#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.

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Please consider the environment before printing this e-mail.

CONFIDENTIAL NOTICE:
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