[mrtg] Mrtg to gather printer pagecounts?
Shawn Barnhart
swb at mercury.campbell-mithun.com
Wed Sep 29 19:24:50 MEST 1999
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
More information about the mrtg
mailing list