|
|
| Author |
Message |
rex
Joined: 17 Nov 2003 Posts: 7 Location: US/California/Bay Area
|
Posted: Thu Nov 20, 2003 11:57 pm Post subject: Monitoring HP Printer Toner Levels |
|
|
I took a quick peek through the forums and didn't see any posts with examples of how to monitor the toner level on HP printers (my apologies if I'm duplicating somone's work here) so I set out to create a graph template for doing just that.
Here are the OIDs involved:
.1.3.6.1.2.1.43.11.1.1.9.1.1 is the amount of black toner remaining
.1.3.6.1.2.1.43.11.1.1.8.1.1 is the maximum black toner level
I have attached an export of a graph template (Printer - HP - Toner Level) and two data templates (Printer - HP - Black Toner Max and Printer -HP -Black Toner Level).
This is my first real attempt at using user defined graph templates and data source templates (this is my first week playing with cacti) so feedback is welcome!
| Description: |
| One graph and two data source templates for HP Printer toner level. |
|
 Download |
| Filename: |
printer-hp-toner.xml |
| Filesize: |
10.29 KB |
| Downloaded: |
3319 Time(s) |
|
|
| Back to top |
|
 |
Linzer
Joined: 24 Sep 2002 Posts: 31
|
Posted: Tue Nov 25, 2003 12:02 pm Post subject: Question regarding this export |
|
|
| Shouldn't the imported max data template be of type SNMP and polling the .1.3.6.1.2.1.43.11.1.1.8.1.1 OID?
|
|
| Back to top |
|
 |
Steve Guest
|
Posted: Fri Nov 28, 2003 6:35 am Post subject: No rrd file |
|
|
Apologies but I'm quite new to Cacti and rrd in general.
I've imported your script but my images appear broken...
When debugging it says there is no rrd file.
Any idea why one has not been created??
|
|
| Back to top |
|
 |
Yvan
Joined: 02 Apr 2003 Posts: 7 Location: Balegem, BE
|
Posted: Fri Nov 28, 2003 7:50 am Post subject: |
|
|
I run into the same problem. Here's what I did
1. imported the xml-template
2. modified the data template 'Printer - HP - Black Toner Max'
2.1. changed the data input source to 'Get SNMP Data'
2.2. and set the OID to .1.3.6.1.2.1.43.11.1.1.8.1.1
3. created a new polling host
3.1 host template set 'Generic SNMP-enabled host'
4. created the data sources
4.1. set data template to the HP Toner Templates
4.2. and the host to the host we just made
5. created a new graph in Graph Management
5.1. selected Graph Template: Printer HP oner Level
5.2. selected the host we made
But somewhere I missed something because cacti refuses to create a graph
When I debug the graph, the DEF fields are missing.
This is what is looks like:
| Code: | /usr/local/rrdtool-1.0.45/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="lexmark OptraColor 1200 - Toner Level" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
AREA:#CDCFC4:"Maximum Toner Level" \
LINE1:#000000:"Current Toner Level" \
GPRINT::LAST:"mg of toner remaining\:%8.0lf" |
And this is what is should look like:
| Code: | /usr/local/rrdtool-1.0.45/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="lexmark OptraColor 1200 - Toner Level" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
DEF:a=/home/www/htdocs/cacti/rra/lexmark_optracolor_1200_blk_toner_level_133.rrd:blk_toner_level:AVERAGE \
DEF:b=/home/www/htdocs/cacti/rra/lexmark_optracolor_1200_blk_toner_max_133.rrd:blk_toner_level:AVERAGE \
AREA:b#CDCFC4:"Maximum Toner Level" \
LINE1:a#000000:"Current Toner Level" \
GPRINT:a:LAST:"mg of toner remaining\:%8.0lf" |
Where did we go wrong? (Novastar would ask )
Additional information can be found in http://www.raxnet.net/board/viewtopic.php?t=2831
cya,
Yvan
|
|
| Back to top |
|
 |
jweinraub
Joined: 13 Apr 2007 Posts: 32
|
Posted: Fri Apr 13, 2007 9:22 am Post subject: |
|
|
anyway for this to work with the 2600n? Its a colour laser so I'd like to monitor levels of all toners.
Thanks!
|
|
| Back to top |
|
 |
cyrill Cacti User
Joined: 25 Jan 2008 Posts: 268 Location: California - USA
|
Posted: Fri Feb 01, 2008 8:59 am Post subject: |
|
|
Hello ! I'm a newbie with cacti.
It's a graph template, host template or a data template ?
How must I processing to use it ?
thanks
|
|
| Back to top |
|
 |
cyrill Cacti User
Joined: 25 Jan 2008 Posts: 268 Location: California - USA
|
Posted: Fri Feb 01, 2008 9:02 am Post subject: |
|
|
sorry for my stupid question... lol there are just one solution for importing data in cacti...
sorry
|
|
| Back to top |
|
 |
cyrill Cacti User
Joined: 25 Jan 2008 Posts: 268 Location: California - USA
|
Posted: Fri Feb 01, 2008 9:12 am Post subject: |
|
|
I've a problem... xD
My template have this status "Not Being Graphed " why ???
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Fri Feb 01, 2008 9:22 am Post subject: |
|
|
Select "Create Graphs for this Host", check that Template and "Create"
Reinhard
|
|
| Back to top |
|
 |
cyrill Cacti User
Joined: 25 Jan 2008 Posts: 268 Location: California - USA
|
Posted: Fri Feb 01, 2008 9:26 am Post subject: |
|
|
hum. thanks for your help
Just one question too : What the unit for the level of toner ?
|
|
| Back to top |
|
 |
the_sphynx
Joined: 04 Aug 2004 Posts: 7 Location: Westminster, CO
|
Posted: Fri Feb 01, 2008 2:29 pm Post subject: |
|
|
cryril,
The legend says mg of toner remaining so I would assume miligrams...
|
|
| Back to top |
|
 |
cyrill Cacti User
Joined: 25 Jan 2008 Posts: 268 Location: California - USA
|
Posted: Mon Feb 04, 2008 3:28 am Post subject: |
|
|
thanks...
I'm stupid sorry.
There are others templates or scripts for HP printer ???
|
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Mon Feb 04, 2008 3:38 am Post subject: |
|
|
| You can find a list of templates here.
|
|
| Back to top |
|
 |
cyrill Cacti User
Joined: 25 Jan 2008 Posts: 268 Location: California - USA
|
Posted: Mon Feb 04, 2008 4:27 am Post subject: |
|
|
yes I see...
But I can't find a graph template for cheking the spooler of a printer or its queue ... It's possible ?f
Last edited by cyrill on Wed Jun 04, 2008 6:14 am; edited 1 time in total |
|
| Back to top |
|
 |
PepsiCrazy
Joined: 19 May 2008 Posts: 1
|
Posted: Mon May 19, 2008 9:08 am Post subject: |
|
|
Hi All,
I was experiencing the same problem as Steve as my pictures were appearing broken and i kept being to there was no rrd file when trying to debug.
I tried of the instructions Yvan had left, they worked great.
Thanks!
|
|
| Back to top |
|
 |
|