[mrtg] FW: Mrtg to gather printer pagecounts? Here is my config file
Barron Hulver
barron at po.cwru.edu
Wed Sep 29 23:07:37 MEST 1999
I don't know if this will help, but here is the mrtg config file I use to
monitor the printer pages on a HP LaserJet 5 si.
Barron
WorkDir: ...
Refresh: 600
Interval: 60
# rfc 1759 printer mib
#
# iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).printmib(43)
# 2/23/99 09:49 a.m.? Name: 43.10.2.1.4.1.1 -> Counter: 236007
# 2/26/99 10:15 a.m. 239048
#
# The number of pages/second is typically < 1 (not an integer),
# Therefore calculate number of pages/hour to make an integer
#
MaxBytes[_]: 999999
Suppress[_]: y
YLegend[_]: Pages/Hour
ShortLegend[_]: p/h
Legend1[_]:Pages Per Hour
LegendI[_]:
LegendO[_]: Pages:
Options[_]: growright, nopercent
Colours[_]: GREEN#eefeee,BLUE#1000ff,DARK GREEN#000000,VIOLET#000000
Title[hplj5si]: Crawford HP LaserJet 5 si pages
PageTop[hplj5si]: <h2>Crawford HP LaserJet 5 si pages</h2>
<a href="http://www.cis.ohio-state.edu/htbin/rfc/rfc1759.html">rfc 1759 -
click here to read this rfc</a><br>
rfc 1759<br>
iso(1).org(3).dod(6).internet(1).mgmt(2).mib-2(1).printmib(43).<br>
prtMarker(10).prtMakerTable(2).prtMarkerEntry(1).prtMarkerLifeCount(4)
Target[hplj5si]: 3600 *
.1.3.6.1.2.1.43.10.2.1.4.1.1&.1.3.6.1.2.1.43.10.2.1.4.1.1:<community>@<ip
address>
LegendI[hplj5si]:
LegendO[hplj5si]: Pages:
Legend2[hplj5si]:Pages per Hour
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of Shawn Barnhart
Sent: Wednesday, September 29, 1999 12:25 PM
To: mrtg list
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