[geeks] MRTG

Shawn Wallbridge swallbridge at franticfilms.com
Wed May 29 16:45:30 CDT 2002


I found a page at (http://www.ansdell.demon.co.uk/networks/monitor.html)
that lists some MIB's for HP printers (1.3.6.1.2.1.43.10.2.1.4.1.1 ), but
they don't say anything about our model.

Honestly, I don't know squat about SNMP, I just used the config file creator
(cfgmaker) to make the stuff for MRTG. I have been reading the mrtg docs
trying to figure out where to put the MIB in the cfgmaker command, but what
they say to do doesn't seem to work.

Here is the config file I have working for the printer that is currently
monitoring the throughput.

shawn

akira:/etc# cat /etc/mrtg/laserjet.cfg
# Created by
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]:
bits,growright' --output /etc/mrtg/laserjet.cfg 'Target[_]:
1.3.6.1.2.1.43.10.2.1.4.1.1' public at 192.168.0.10


### Global Config Options

#  for Debian
WorkDir: /var/www/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

WorkDir: /var/www/mrtg
Options[_]: bits,growright

######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################



######################################################################
# System: LaserJet
# Description: HP ETHERNET MULTI-ENVIRONMENT,ROM
L.21.21,JETDIRECT,JD84,EEPROM L.21.22,CIDATE 07/06/2001
# Contact:
# Location:
######################################################################


### Interface 1 >> Descr: '' | Name: '' | Ip: '192.168.0.10' | Eth:
'00-01-e6-5c-0e-e5' ###

Target[192.168.0.10_1]: 1:public at 192.168.0.10:
SetEnv[192.168.0.10_1]: MRTG_INT_IP="192.168.0.10" MRTG_INT_DESCR=""
MaxBytes[192.168.0.10_1]: 1250000
Title[192.168.0.10_1]: Traffic Analysis for 1 -- LaserJet
PageTop[192.168.0.10_1]: <H1>Traffic Analysis for 1 -- LaserJet</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>LaserJet in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.0.10 ()</TD></TR>
 </TABLE>


### Interface 2 >> Descr: '' | Name: '' | Ip: '' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
### * has a speed of 0 which makes no sense
#
# Target[192.168.0.10_2]: 2:public at 192.168.0.10:
# SetEnv[192.168.0.10_2]: MRTG_INT_IP="" MRTG_INT_DESCR=""
# MaxBytes[192.168.0.10_2]: 0
# Title[192.168.0.10_2]: Traffic Analysis for 2 -- LaserJet
# PageTop[192.168.0.10_2]: <H1>Traffic Analysis for 2 -- LaserJet</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>LaserJet in </TD></TR>
#    <TR><TD>Maintainer:</TD> <TD></TD></TR>
#    <TR><TD>Description:</TD><TD>  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>softwareLoopback (24)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>0.0 bits/s</TD></TR>
#  </TABLE>


-----Original Message-----
From: geeks-admin at sunhelp.org [mailto:geeks-admin at sunhelp.org]On Behalf
Of Gregory Leblanc
Sent: Wednesday, May 29, 2002 4:12 PM
To: Geeks at Sunhelp. Org
Subject: Re: [geeks] MRTG


On Wed, 2002-05-29 at 14:10, Shawn Wallbridge wrote:
> Anyone good with MRTG? I have it working for a pile of stuff around here,
> but I haven't had to really get into it because it was so easy to set up.
> What I am trying to do, is monitor page output from our printer (HP
LaserJet
> 2200dn). Our printer does snmp and I can monitor the bandwidth use, but a
> page count would be much handier.
>
> Anyone know if it is possible?

Probably is.  Do you have the SNMP MIBs for the printer, so that you can
find out what it actually reports?  They should be available from HP's
website, someplace.  After that it's just a trivial matter of putting a
couple of things into mrtg.conf, and telling it what to call the graph.
	Greg

--
Portland, Oregon, USA.
Please don't copy me on replies to the list.



More information about the geeks mailing list