[mrtg] Re: OID problem

Adam Stanley astanley at pinn.net
Tue Jul 11 03:18:37 MEST 2000


try looking in the documentation for snmp - there is a prefix of numbers
that need to be added before the OID you have displayed.  When you use
snmpget and define the OID as "##.##.##.##..." it prepends the prefix
automatically.  If you were to run snmpget with the OID defined as
".##.##.##.##..." it wouldn't work.  It's possible MRTG doesn't attach the
prefix to the OID automatically like snmpget does - but I'm not positive.

-Adam


|--------------------------------------------------|
 Adam Stanley | Pinnacle Online Technical Support
 (757) 455-5959 ext. 621 | (757) 326-3266 pager
 http://www.pinn.net/~adam | adam at pinn.net
|--------------------------------------------------|

----- Original Message -----
From: "Paul C. Williamson" <pwilliamson at MANDTBANK.COM>
To: "<MRTG users" <mrtg at list.ee.ethz.ch>
Sent: Monday, July 10, 2000 3:12 PM
Subject: [mrtg] OID problem


>
> Hi all,
>
> I am still stumped as to what MRTG is having trouble getting stats from my
Netware server.  The latest problem is that when I type this at the command
prompt, it works:
>
> snmpget 10.18.1.25 public 25.2.3.1.6.6
>
> I get the result:
>
> host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.6 = 29147136
>
>                           and
>
> snmpget 10.18.1.25 public 25.2.3.1.5.6
>
> I get the result
>
> host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.6 = 439504896
>
> The are exactly the numbers I would expect.  They are correct.
>
>
> So, I put this OID in my config file like this:
>
> Target[10.18.1.25]: 25.2.3.1.6.6&25.2.3.1.5.6:public at 10.18.1.25
>
> And I run mrtg from the command line, I get this error:
>
> cannot encode Object ID 25.2.3.1.6.6: first subid too big in Object ID
25.2.3.1.
> 6.6 at /usr/local/bin/mrtg-2.8.11/run//SNMP_util.pm line 958.
> SNMPGET: Failed to reach target:
"25.2.3.1.6.6&25.2.3.1.5.6:public at 10.18.1.25".
> I tried multiple times!
>
> What the heck is happening?
>
> Thanks,
>
> Paul
>
>
> --
> 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


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