[mrtg] Re: What am I doing wrong here?

Roth, Gabrielle gabrielle.roth at xo.com
Mon Oct 30 16:50:18 MET 2000


There's a clue in the error message:
>   error status: noSuchName

snmpget is telling you that the OID on your target line doesn't exist.  Keep
in mind that snmpwalk and snmpget work a little differently--you can start
anywhere in a mib with snmpwalk, but you must use a single, specific OID
with snmpget.  mrtg uses snmpget, and therefore needs specific OIDs.

You are using these OIDs on your target line:
.1.3.6.1.4.1.11.2.3.1.1.13
.1.3.6.1.4.1.11.2.3.1.1.14

Compare this to the results you get from snmpwalk:
enterprises.11.2.3.1.1.13.0
enterprises.11.2.3.1.1.14.0
...these are the more 'specific' OIDs required by snmpget.

You need to add a .0 to the end of both your OIDs.

You also need to remove the leading ., mrtg doesn't need it.

> 	I am trying to collect CPU usage statistcsfrom an HP 
> machine using mrtg, and I
> 	am doing something wrong, but I can't see what. Here's 
> the culprit config file
> 	line:
> 
> 	Target[kodiak.fas.com_cpu_usage]: 
> .1.3.6.1.4.1.11.2.3.1.1.13&.1.3.6.1.4.1.11.2.3
> 	.1.1.14:public at kodiak.fas.com
> 
> 	And hees a couple of snmpwalk runs:
> 
> 	$ snmpwalk kodiak.fas.com public .1.3.6.1.4.1.11.2.3.1.1.13
> 	enterprises.11.2.3.1.1.13.0 = 400081
> 	
> 
> 	$ snmpwalk kodiak.fas.com public .1.3.6.1.4.1.11.2.3.1.1.14
> 	enterprises.11.2.3.1.1.14.0 = 48476
> 
> 	But yet I am getting this error message:
> 
> Script started on Sat Oct 28 16:39:46 2000
> \n\nWARNING:  YOU ARE SUPERUSER !!\n
> ]0;root at brown.fas.com;/home/stanroot at brown.fas.com:/home/stan
> $ run _mrtg
> SNMP Error:
> Received SNMP response with error code
>   error status: noSuchName
>   index 1 (OID: 1.3.6.1.4.1.11.2.3.1.1.13)
> SNMPv1_Session (remote host: "kodiak.fas.com" [205.159.77.236].161
>                   community: "public"
>                  request ID: 1350347916
>                 PDU bufsize: 8000 bytes
>                     timeout: 2s
>                     retries: 5
>                     backoff: 1)
> SNMPGET Problem for .1.3.6.1.4.1.11.2.3.1.1.13 
> .1.3.6.1.4.1.11.2.3.1.1.14 sysUptime sysName on public at kodiak.fas.com
> ]0;root at brown.fas.com;/home/stanroot at brown.fas.com:/home/stan
> $ 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list