Windows Server MRTG Problems

8 messages Options
Embed this post
Permalink
banderson () Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
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@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@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]: CPU Utilization (percentage) 


----------------------------------------------------------------
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@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
PAUL WILLIAMSON-3 () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
>>> banderson <[hidden email]> 10/6/2009 2:15 PM >>>
>
>Target[192.168.1.5-cpu]: .1.3.6.1.2.1.25.5.1.1.1.0:[hidden email]
First problem - you need two OIDs.
 
Second problem - have you tried querying this OID by hand doing an
snmpwalk of the device?  If that works, you can always do this:
Target[192.168.1.5-cpu]: .1.3.6.1.2.1.25.5.1.1.1.0&.1.3.6.1.2.1.25.5.1.1.1.0:[hidden email]
 
and just put a noi or noo on your options line.
 
--
Paul
************************************
This email may contain privileged and/or confidential information that is intended solely for the use of the addressee.  If you are not the intended recipient or entity, you are strictly prohibited from disclosing, copying, distributing or using any of the information contained in the transmission.  If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy.  This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act and the Sarbanes-Oxley Act.  You may not directly or indirectly reuse or disclose such information for any purpose other than to provide the services for which you are receiving the information.
There are risks associated with the use of electronic transmission.  The sender of this information does not control the method of transmittal or service providers and assumes no duty or obligation for the security, receipt, or third party interception of this transmission.
************************************

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
banderson () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
Paul,

thanks for the reply.

If you check the bottom of my first post you can see the SNMP calls I did.

I added the second OID you had posted (just duplicating the OID I was using) and I added the option "noi" (noo returns same results as noi).  It still has a similar error but has changed from:

  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.0)

to

  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.25.5.1.1.1.0)

This is closer I think since the first OID error was not the hrSWRunPerfCPU OID whereas the second error code is (.1.3.6.1.2.1.25.5.1.1.1 = hrSWRunPerfCPU).  


-Ben

Mersberger, Robert-2 () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
In reply to this post by banderson
 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@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: [hidden email] [mailto:[hidden email]] On Behalf Of banderson
Sent: Tuesday, October 06, 2009 1:16 PM
To: [hidden email]
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
[hidden email]

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:[hidden email]
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]: CPU Utilization (percentage) 


----------------------------------------------------------------
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 [hidden email]::::::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
[hidden email]
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.

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
banderson () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
Thanks for the input everyone. It appears as though I had the correct setup the first time I configured this, but the data didn't seem right so I kept messing with it and the config just went down hill from there.

Thanks.
S Shipway () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
I'd suggest running cfgmaker with the generic host template from http://www.steveshipway.org/cfgmaker which will probe the host and add appropriate MRTG stanzas for whatever variables it can find.  It also does some pretty things if you have multiple CPUs and storage by making combined routers2 graphs (if you're using Routers2 as the frontend, of course)

There are a few more host and interface templates there as well for various other purposes.

Steve

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
Mersberger, Robert-2 () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
Is this better than the "host template for windows"

While on the subject: Is there a template for Cisco to do temperature that will show both in and out.  This is something I want to do on a Cisco ASR router.  By the way this router has several like 8 different temperature probes .

Thanks

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Shipway
Sent: Tuesday, October 06, 2009 4:20 PM
To: banderson; [hidden email]
Subject: Re: [mrtg] Windows Server MRTG Problems

I'd suggest running cfgmaker with the generic host template from http://www.steveshipway.org/cfgmaker which will probe the host and add appropriate MRTG stanzas for whatever variables it can find.  It also does some pretty things if you have multiple CPUs and storage by making combined routers2 graphs (if you're using Routers2 as the frontend, of course)

There are a few more host and interface templates there as well for various other purposes.

Steve

_______________________________________________
mrtg mailing list
[hidden email]
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.

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
S Shipway () Re: Windows Server MRTG Problems
Reply Threaded More More options
Print post
Permalink
> Is this better than the "host template for windows"

The generic template is a combination of the Windows template, UCD template, generic UNIX template, and Cisco template.  It probes to identify what sort of server we're dealing with; by using this, you can have one host template for all your devices, which should be easier for all.

> While on the subject: Is there a template for Cisco to do temperature that
> will show both in and out.  This is something I want to do on a Cisco ASR
> router.  By the way this router has several like 8 different temperature
> probes .

Maybe not yet... but if you take the existing cisco template and modify it to graph multiple temperature sources onto one graph then you can submit the updated template...?

One problem I've had with Cisco temperatures is that they are TOO detailed.  There were a large number of different sensors in many different locations... I wrote a separate plugin that just takes every temperature reading it can find on a device and grabs the highest value, then outputs that.

Steve

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg