[mrtg] Re: Mrtg to gather printer pagecounts?

Neil Calvert ncalvert at cabletron.com
Wed Sep 29 19:36:43 MEST 1999


Hi Shawn

I would try encoding the OID from the root.. ie 1.3.6.1.... 43 etc etc
instead of from the 43 OID. I think MRTG prefers OIDs presented that way
(although command line tools often don't care).

Neil


-----Original Message-----
From: Shawn Barnhart <swb at mercury.campbell-mithun.com>
To: mrtg list <mrtg at list.ee.ethz.ch>
Date: Wednesday, September 29, 1999 1:28 PM
Subject: [mrtg] Mrtg to gather printer pagecounts?


>OK, so I've been reading the FAQs and config docs, and it seems that I
>should be able to use mrtg to graph printer page counts.  I don't have
the
>HP printer MIBs installed, but an smpwalk of my printer revealed that
the
>OID 43.10.2.1.4.1.1 is an HP5si's pagecount variable.
>
>I copied an existing entry from my cfg and modified it like so:
>
>Target[10.10.10.1]: 43.10.2.1.4.1.1&43.10.2.1.4.1.1:public at 10.10.10.1
>MaxBytes[10.10.10.1]: 1000000
>Title[10.10.10.1]:  (): 10.10.10.1
>PageTop[10.10.10.1]: <H1>Pagecount for 10.10.10.1
> </H1>
>
>According to the Target keyword docs, I should be able to pass it two
OIDs
>(in this case, the same ones, the graph should just track identical
values
>for in and out).
>
>When I run mrtg with this in my config, I get:
>
>Cannot encode Object ID 43.10.2.1.4.1.1: first subid too big in Object
ID
>43.10.2.1.4.1.1 at /SNMP_util.pm line 958.
>SNMPGET: Failed to reach target:
>"43.10.2.1.4.1.1&43.10.2.1.4.1.1:public at 10.10.10.1. I tried multiple
times!
>
>I'm presuming that the second error is due to the first error.  Is
there
>something wrong with the OID I'm passing to it?  snmpget doesn't seem
to
>have a problem with it.  Do I need to pass it a "smaller" OID (lop off
one
>of the octets?).  Or is this a case where I have to use a seperate
program
>to snarf the data?
>
>Thanks for any help.
>
>--
>* To unsubscribe from the mrtg mailing list, send a message with the
>  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
>* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
>

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list