SNMP Printer Template

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

Moderators: Moderators, Developers

Author
Message
jokerz
Posts: 13
Joined: Thu Oct 26, 2006 11:57 am

#16 Post by jokerz » Mon Oct 30, 2006 12:22 pm

1st off - nice template love it...

only n00b question on the left side for units i see 10m 8m 6m 4m

is that suppose to be m = million?

If so how does one go about changing the unit... I think on average our printers print in the hundred / thousand range never million per day... ten thounds per month...

User avatar
adrianmarsh
Cacti User
Posts: 435
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

#17 Post by adrianmarsh » Mon Oct 30, 2006 2:10 pm


dwalthers
Posts: 1
Joined: Mon Feb 12, 2007 5:41 pm

Printer MIB / SNMP Application

#18 Post by dwalthers » Mon Feb 12, 2007 5:48 pm

I am looking for a web based application that can pull the printer MIB data from remote networked printers. I am primarily interested in the supplies calculation. Do you have or know of such an application?

Dennis Walthers
[email protected]
http://www.FreePrinters.com
FreePrinters.com
(877) 437-3377
(214) 764-3526 -Direct
(509) 757-8726 -Fax

User avatar
adrianmarsh
Cacti User
Posts: 435
Joined: Wed Aug 17, 2005 8:51 am
Location: UK

#19 Post by adrianmarsh » Sun Mar 04, 2007 6:33 pm

Well... Cacti itself... But you need to know the MIBs for the printer.

For most SNMP-enabled printers this isn't an issue. Recently I've found that KonicaMinolta refuse to give out the MIBs for my recently rented Bizhub c252. For which I will remember them gravely..

You might want to try the template at the beginning of this thread, as I think its intended as a generic one.

apperrault
Cacti User
Posts: 372
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

#20 Post by apperrault » Tue Apr 10, 2007 11:24 am

Hi All, i just installed this printer script, and i have a couple questions. I am getting graph data for the amount of prints, but when i look at the graphs, the current pages is always 0. Does anyone know why this is like this?

I can post a picutre if you need.

Thanks much

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]

Gir
Posts: 3
Joined: Thu Sep 14, 2006 10:43 am

#21 Post by Gir » Tue May 22, 2007 9:22 am

I'm getting a weird error with the printer_supply.xml

Code: Select all

+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/printer_supply.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/printer_supply.xml'"
I'm not getting any results returned from this, but the snmpwalk works juts fine for the all the OID's except the first one. I tried taking out that first one but it still has the same problem. Any ideas?[/code]

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#22 Post by gandalf » Tue May 22, 2007 2:42 pm

apperrault wrote:Hi All, i just installed this printer script, and i have a couple questions. I am getting graph data for the amount of prints, but when i look at the graphs, the current pages is always 0. Does anyone know why this is like this?

I can post a picutre if you need.

Thanks much

app
Yes, an image would help. I'm quite sure to be able to explain ...
Reinhard

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#23 Post by gandalf » Tue May 22, 2007 2:43 pm

Gir wrote:I'm getting a weird error with the printer_supply.xml

Code: Select all

+ Error parsing XML file into an array.
I'm not getting any results returned from this, but the snmpwalk works juts fine for the all the OID's except the first one. I tried taking out that first one but it still has the same problem. Any ideas?[/code]
That XML seems to be broken. Either the original one or your copy is corrupted
Reinhard

asantos02
Posts: 2
Joined: Wed May 02, 2007 6:56 pm

Total Pages with zero value

#24 Post by asantos02 » Thu May 24, 2007 11:14 am

Hi all,

I have instaled this script, and it work well (with some modificatios for my printers Xerox Phser and Docuprinter) and the problem is that in snmpwalk I can see the total pages number, but there is no value in graphic.

Code: Select all

C:\net-snmp\bin>snmpwalk -v 1 -c xxxxx 10.x.x.237 1.3.6.1.2.1.43.10.2.1.4.1
SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 507597

C:\net-snmp\bin>snmpwalk -v 1 -c xxxxx 10.x.x.50 1.3.6.1.2.1.43.10.2.1.4.1
SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 5391038
Can anyone help me?

Alfredo Santos

terziyski
Cacti User
Posts: 92
Joined: Thu Nov 02, 2006 6:02 am
Location: Bulgaria
Contact:

#25 Post by terziyski » Tue Oct 23, 2007 5:32 am

I've managed to correct the data and graph templates and SNMP Query so now I see
the total printed pages in graphs and all other stuff too. I've tested the templates on:

Xerox WorkCentre Pro 35 PS
HP Color LaserJet 4600 PCL 5c

and they work pretty well.

Enjoy
Attachments
HP Printer Supplies Templates.zip
(11.06 KiB) Downloaded 3461 times
printer_supply.xml
(1.36 KiB) Downloaded 4214 times
Cacti user

yusrij
Posts: 15
Joined: Fri Aug 24, 2007 7:52 pm

HP Jetdirect 3 ports

#26 Post by yusrij » Mon Nov 05, 2007 1:37 am

When i used this printer snmp template, i only can query 1 printer thats connect to port 1.

How can query from the other ports?

What is the OID for the second and third port?

yusrij
Posts: 15
Joined: Fri Aug 24, 2007 7:52 pm

Re: HP Jetdirect 3 ports

#27 Post by yusrij » Tue Nov 06, 2007 3:15 am

yusrij wrote:When i used this printer snmp template, i only can query 1 printer thats connect to port 1.

How can query from the other ports?

What is the OID for the second and third port?
Sorry,

i run snmp to query external HP Jetdirect with 3 parallel port.

aquila125
Posts: 23
Joined: Fri Oct 19, 2007 6:37 am

#28 Post by aquila125 » Thu Nov 29, 2007 9:46 am

Hi,

we have a Xerox Phaser 6300. Where can I find the OID's?
I was hoping I would find the correct OID's for the number of prints and the percentage that the cartridges are full...

tnx!

jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

#29 Post by jrohr » Wed Dec 19, 2007 11:50 am

gandalf wrote:That depends on the way you want to get things graphed. When using a COUNTER, you will get differences between polling intervals (perhaps normalized to a minute or so). That's your current settings.
But you may change to GAUGE to get those "increasing" values. So it depends on your likings
Reinhard
gandalf wrote: To be precise, after changing the rrdtool option, you'll have to "rrdtool tune" all existing rrd files to mimic the wanted behaviour.
And by using the Summing function (see manual), it is well possible to get the totals (relative tpo the timespan of the current graph) displayed. You you may get daily total, weekly total ...

I've been using the SNMP Printer Template and have not been able to get total printed pages to return increasing values. gandalf suggested changing to GAUGE to get the increasing values and to "rrdtool tune" which referred to a Summing function. I was able to change to GAUGE but cannot find any information on summing printers.
terziyski wrote:I've managed to correct the data and graph templates and SNMP Query so now I see
the total printed pages in graphs and all other stuff too. I've tested the templates on:

Xerox WorkCentre Pro 35 PS
HP Color LaserJet 4600 PCL 5c

and they work pretty well.

Enjoy
I also tried updating my templates using terziyski changes but I'm still seeing printed pages based on COUNTER values (only shows pages based on time).

How can I get the total printed pages to display on the graph? I would expect it to start graphing based on total page count. From what I understand about Cacti if our printer already has 500,000 impressions when Cacti starts graphing data it will start at 500,000 right? That way I could see the differences in daily, weekly, monthly, etc and the true page count would show in the legend.

Anyone got this working correctly?

Thanks
Jeff

jrohr
Posts: 23
Joined: Wed Sep 12, 2007 2:38 pm

#30 Post by jrohr » Mon Dec 31, 2007 10:57 am

I was able to get the total printed pages using just the Generic OID Template for SNMP instead. I'm not sure what other people are doing to this template to get it to graph total values but this seemed like the simplest solution.

Although, I'm still using this template because it shows the activity on the printer. I did change the title of the SNMP printer graph and removed "Total" since the total was not included anywhere on the graph. It would make more sense to call the graph "Printed pages activity" or something similar.

Post Reply