Needed Host Template: HP LaserJet 8100 & 4000 Series Pri

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
the_sphynx
Posts: 21
Joined: Wed Aug 04, 2004 4:28 pm
Location: Thornton, CO

Needed Host Template: HP LaserJet 8100 & 4000 Series Pri

Post by the_sphynx »

I have been searching the forums for a day and a half now looking for some scripts/templates to start graphing th page count on my printers here in the office with no luck.
I currently have about 30 total printers, most are HPLJ 4000 & 8100 series printer, there are a couple Toshiba Laser Jet printers as well, but I am primarily concerned about the HPs.
If anyone out there has something compatible with 0.85a then I would grealty appreciate it.
If I don't need a script/template then I would also appreciate some help on how to setup cacti to graph the page counts on these printers.
Thanks,

Bryan
agentblueuk
Posts: 2
Joined: Mon Aug 09, 2004 6:25 am
Contact:

Post by agentblueuk »

I started looking into this for our Xerox Phaser printers but stopped part way through as it was too time consuming comparied with the business' need to monitor the performance.

If you do however get a template I would be interested to see it as I could then see how easily you could write a script that would take the printers snmp MIB and convert that into a Cacti Template
User avatar
Burke
Posts: 42
Joined: Tue Nov 05, 2002 7:22 am
Location: Virginia, USA
Contact:

Post by Burke »

I got started into this a little bit, but didn't get the count to show...
anyway, the OID you want to query for the HP printers is "43.10.2.1.4.1.1".

Other stuff I graphed on a HP LaserPrinter:
Available Toner: .1.3.6.1.2.1.43.11.1.1.9.1.1
Max Toner: .1.3.6.1.2.1.43.11.1.1.8.1.1

Set Max Toner to Area with a dark color as your first data source in the graph.
Then set Available Toner to area with a lighter color as your second data source. This helps determine the rate of toner consumption in a department/company.
Attachments
Results of using Toner OIDs specified in my post.
Results of using Toner OIDs specified in my post.
hplj-toner-graph.png (3.96 KiB) Viewed 9266 times
Burke - MCP+I, MCSE, MCSD, CNE, CCA, CCNA, LPIC-1
[url=http://www.technicalvalues.com]My Website[/url] ::[url=http://www.technicalvalues.net]Domain Registrations, SSL Certs, and Hosting[/url]
agentblueuk
Posts: 2
Joined: Mon Aug 09, 2004 6:25 am
Contact:

Post by agentblueuk »

Any chance of going into Cacti and using the export feature to export your tempates and post them to this forum for users to look at and use ?
User avatar
Burke
Posts: 42
Joined: Tue Nov 05, 2002 7:22 am
Location: Virginia, USA
Contact:

Post by Burke »

hmm... never done that before.. let's see if this works for you...

Please respond back to let me know if I exported all that correctly.
Attachments
hptonergraphtemplate.xml
HP Toner Graph Template + Dependencies (AvailToner Data Source Template and MaxToner Data Source Template)
(10.76 KiB) Downloaded 1310 times
Burke - MCP+I, MCSE, MCSD, CNE, CCA, CCNA, LPIC-1
[url=http://www.technicalvalues.com]My Website[/url] ::[url=http://www.technicalvalues.net]Domain Registrations, SSL Certs, and Hosting[/url]
raul.macian
Posts: 18
Joined: Fri Jun 03, 2005 6:42 am

Post by raul.macian »

I want to use this templates for my 4050,4500 & 8550.

Which toner do you monitor with this template? Is there anything more than can be monitored?
User avatar
Burke
Posts: 42
Joined: Tue Nov 05, 2002 7:22 am
Location: Virginia, USA
Contact:

Post by Burke »

Ahh.. Color Printers... I haven't bothered putting time into figuring those out. This graph is produced from a 4100 at one of my client sites. There have been no requests from them for any printer monitoring at all, I just did this one to get an idea of how long their black toner cartridge was lasting ;)
Burke - MCP+I, MCSE, MCSD, CNE, CCA, CCNA, LPIC-1
[url=http://www.technicalvalues.com]My Website[/url] ::[url=http://www.technicalvalues.net]Domain Registrations, SSL Certs, and Hosting[/url]
raul.macian
Posts: 18
Joined: Fri Jun 03, 2005 6:42 am

Post by raul.macian »

It seems that works for my 8550 but not with my 4050 (partial) & 4500. If I do a snmpwalk over these two printers appears an error:

Code: Select all

udpInDatagrams.0 = Counter32: 2142
udpNoPorts.0 = Counter32: 393
udpInErrors.0 = Counter32: 0
udpOutDatagrams.0 = Counter32: 2138
udpLocalAddress.172.17.101.202.161 = IpAddress: 172.17.101.202
udpLocalPort.172.17.101.202.161 = INTEGER: 161
udpLocalAddress.172.17.101.202.427 = IpAddress: 172.17.101.202
Error: OID not increasing: udpLocalPort.172.17.101.202.161
 >= udpLocalAddress.172.17.101.202.427
and if I try to get for example the counters one returns no values and the other returns a -3

after monitoring for some minuts I see that the drum for the 4050 does not work and the toner graphs neither for the 4500. In fact doing a snmpwalk requesting the OIDS I see:

Code: Select all

mib-2.43.11.1.1.6.1.1 = STRING: "Black Toner Cartridge HP C4191A"
mib-2.43.11.1.1.6.1.2 = STRING: "Cyan Toner Cartridge HP C4192A"
mib-2.43.11.1.1.6.1.3 = STRING: "Magenta Toner Cartridge HP C4193A"
mib-2.43.11.1.1.6.1.4 = STRING: "Yellow Toner Cartridge HP C4194A"
mib-2.43.11.1.1.6.1.5 = STRING: "Drum Kit HP C4195A"
mib-2.43.11.1.1.6.1.6 = STRING: "Transfer Kit HP C4196A"
mib-2.43.11.1.1.6.1.7 = STRING: "Fuser Kit HP 120V C4197A    220V C4198A"
mib-2.43.11.1.1.7.1.1 = INTEGER: 13
mib-2.43.11.1.1.7.1.2 = INTEGER: 13
mib-2.43.11.1.1.7.1.3 = INTEGER: 13
mib-2.43.11.1.1.7.1.4 = INTEGER: 13
mib-2.43.11.1.1.7.1.5 = INTEGER: 7
mib-2.43.11.1.1.7.1.6 = INTEGER: 7
mib-2.43.11.1.1.7.1.7 = INTEGER: 7
mib-2.43.11.1.1.8.1.1 = INTEGER: -2
mib-2.43.11.1.1.8.1.2 = INTEGER: -2
mib-2.43.11.1.1.8.1.3 = INTEGER: -2
mib-2.43.11.1.1.8.1.4 = INTEGER: -2
mib-2.43.11.1.1.8.1.5 = INTEGER: -2
mib-2.43.11.1.1.8.1.6 = INTEGER: -2
mib-2.43.11.1.1.8.1.7 = INTEGER: -2
mib-2.43.11.1.1.9.1.1 = INTEGER: -3
mib-2.43.11.1.1.9.1.2 = INTEGER: -3
mib-2.43.11.1.1.9.1.3 = INTEGER: -3
mib-2.43.11.1.1.9.1.4 = INTEGER: -3
mib-2.43.11.1.1.9.1.5 = INTEGER: -2
mib-2.43.11.1.1.9.1.6 = INTEGER: -2
mib-2.43.11.1.1.9.1.7 = INTEGER: -2
I don´t know why the counters are all at -3. Printing the configuration page from the printer, the toner counter's doesn´t appear. I am not sure if this printer reports the toner levels :?
droopy
Posts: 1
Joined: Thu Jul 07, 2005 3:46 am

Post by droopy »

snmpwalk:

-C <APPOPTS> snmpwalk specific options
APPOPTS values:
c: Don't check that the returned OID's are increasing
i: Include the requested OID in the search range
p: Print the number of variables found

Just add a -Cc to the command line in cacti/lib/snmp.php

Code: Select all

       $temp_array = exec_into_array(read_config_option("path_snmpwalk") . " -Cc -v$version -t $timeout etries $hostname:$port $snmp_auth $oid");
                        $temp_array = exec_into_array(read_config_option("path_snmpwalk") . " -Cc -O QfntUe $snmp_auth -vsion -t $timeout -r $retries $hostname:$port $oid");
Rroet
Posts: 4
Joined: Sat Feb 12, 2005 4:58 pm
Location: The Hague
Contact:

Post by Rroet »

-- post removed by poster --

Seems that my problems had arrised from using cacti 0.8.6f with thold for 0.8.6d :+
Life on earth is expensive, but it does include a free trip arround the sun :)
ruca
Posts: 6
Joined: Wed Sep 07, 2005 5:50 am

Post by ruca »

hi'

I have a hp laserjet 5100, but can't find the OID with the max and the avaliable toner.

anybody have the OID correct ?

thanks
ottomatic
Posts: 10
Joined: Mon Mar 20, 2006 3:29 pm

Post by ottomatic »

Yeah. I'm with ^^^.

I can't find the OID anywhere for the 5100 toner levels. Does anyone know where I can find this number?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This question should be answered by the manufacturer. Sorry, but we're not using those device, so personally, I can't help on this
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests