This is the paragraph I’m using, it does work on Server 2003. There is a 
difference in the oid’s for 2000 and 2003, I think. I do see a difference 
between your oid and mine. I don’t know if that’s it, though. 

 

Target[Server-cpu]:.1.3.6.1.4.1.311.1.1.3.1.1.33.9.0&.1.3.6.1.4.1.311.1.1.3.1.1.33.9.0:[EMAIL
 PROTECTED] 

AbsMax[Server-cpu]: 100 

MaxBytes[Server-cpu]: 100 

Title[Server-cpu]: CPU Utilization (average) 

PageTop[Server-cpu]: CPU Utilization <h1>Cpu Utilization for Server</h1>

Options[Server-cpu]: gauge,growright,nopercent, noo 

YLegend[Server-cpu]: CPU Utilization 

ShortLegend[Server-cpu]: % 

LegendI[Server-cpu]:&nbsp;CPU Utilization (percentage)&nbsp

 

Bob Grabbe

Michigan Proteome Consortium

University of Michigan

[EMAIL PROTECTED]

_____________________________________________________________

If we knew what we were doing, it wouldn't be called research, would it ?

--Albert Einstien

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Toto Capuccino
Sent: Monday, June 04, 2007 11:51 AM
To: [email protected]
Subject: [mrtg] OIDs query not working from mrtg but working from command line

 

Hi

I just installed mrtg and i am reading the doc.
I would like to create a graph of CPU utilization of Windows 2003 server.
I have a simple OID to query:
 1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108

It works from the command line
snmpget -v 1 -c [EMAIL PROTECTED] 10.2.1.3  
1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108
SNMPv2-SMI::enterprises.9600.1.1.5.1.5.6.95.84.111.116.97.108 = Gauge32: 0 

So i have started writing my cfg file
Target[10.2.1.3]: 
1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108&1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108:[EMAIL
 PROTECTED]@ 10.2.1.3 <http://10.2.1.3> 
Title[10.2.1.3]: Cpu Utilzation for nlamssv03
MaxBytes[10.2.1.3]: 100

It doesn't work.

I get this error :
env LANG=C /usr/bin/mrtg test2.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 2 (OID: 1.3.6.1.4.1.9600.1.1.5.6.95.84.111.116.97.108)
SNMPv1_Session (remote host: " 10.2.1.3 <http://10.2.1.3> " [10.2.1.3].161)
                  community: "[EMAIL PROTECTED]"
                 request ID: 1534273303
                PDU bufsize: 8000 bytes
                    timeout: 2s 
                    retries: 5
                    backoff: 1)
 at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for 1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108 
1.3.6.1.4.1.9600.1.1.5.6.95.84.111.116.97.108 sysUptime sysName on [EMAIL 
PROTECTED]@10.2.1.3::::::v4only
 at /usr/bin/mrtg line 2043
2007-06-04 17:12:59: ERROR: Target[10.2.1.3][_IN_] ' $target->[1]{$mode} ' did 
not eval into defined data 
2007-06-04 17:12:59: ERROR: Target[10.2.1.3][_OUT_] ' $target->[1]{$mode} ' did 
not eval into defined data


I have also tried with another OIDs loading 2 MIBS
1.3.6.1.2.1.25.3.3.1.2.1 

SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.25.3.3.1.2.1)
SNMPv1_Session (remote host: "10.2.1.3" [ 10.2.1.3].161)
                  community: "[EMAIL PROTECTED]"
                 request ID: 707258015
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/share/perl5/SNMP_util.pm line 490
SNMPGET Problem for .1.3.6.1.2.1.25.3.3.1.2.1 .1.3.6.1.2.1.25.3.3.1.2.1 
sysUptime sysName on [EMAIL PROTECTED]@10.2.1.3::::::v4only 
 at /usr/bin/mrtg line 2043
2007-06-04 17:16:10: ERROR: Target[10.2.1.3][_IN_] '(  $target->[1]{$mode}  ) \ 
1' (warn): (Missing operator before \?)
2007-06-04 17:16:10: ERROR: Target[ 10.2.1.3][_OUT_] '(  $target->[1]{$mode}  ) 
\ 1' (warn): (Missing operator before \?)

Can you help?

Thanks

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

Reply via email to