SNMP Printer Template

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

Moderators: Developers, Moderators

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

Post by jrohr »

Hello,
Trying to use the Available Printer Supply graph template to check remaining toner levels. After setting this up it is graphing, but it doesn't look like the graph is updating at all. I'm graphing 2 of our most used printers and one of these is low on toner. All 3 of these printers have been returning either -2 or -3 for about 10 days.

If I check the value using snmpget it gives me the same number -3. In the data template this is using "Get Printer Supply" the valid values are -100 to 0 so I know it's in a valid range. Can anyone tell me why this would not be updating OR if anyone has had success with the Available Printer Supply graphs?

thanks
jrohr
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

Hello.

I don't understand my problem with the graph for "Total printed pages".
It's make some spikes and 0 value for the legend in my graph

And if I make a snmpwalk manualy, the return value is correct ! (it return the number of printed page...)

Code: Select all

chmscacti:/var/www/cacti# snmpwalk -c public -v1 printer16 .1.3.6.1.2.1.43.10.2.1.4.1.1
SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 27685
help me thanks
Attachments
huge spike
huge spike
printer.JPG (27.66 KiB) Viewed 17054 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Please read this topic.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

heu yes.. I've read... And ?? That not explain why I've huge spike on my graph no ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

This means you had a maximum of ~ 0.0015 pages per second, which is ~ 4 pages on a 5 minutes frame.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

hum... And it's possible to graph the total printed page really ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Yes : you'll have to change the data source type from COUNTER to GAUGE.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

ok I try this way !

thanks
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

You'll also have to delete the .rrd file.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

Must I to do it manualy ?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Yes, or you can use the RRDcleaner plugin from gandalf
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

it's perfect !

I deleted the rrd file and change counter to gauge and now it's ok ! I see really the number total number of page printed.

What change with the pluggin RRD of gandalf ?

Another question, can I see the number of files in the queue of the printer ???
User avatar
cyrill
Cacti User
Posts: 271
Joined: Fri Jan 25, 2008 8:43 am
Location: California - USA

Post by cyrill »

Another question, can I see the number of files in the queue of the printer ???
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Post by tgaler1 »

I installed this template on cacti.

Uploaded the xml document into the correct place on the cacti server, but i'm not getting any information back from any of the 3 printers. What is the best method of troubleshooting and correcting the problem? SNMP walk?

Thanks
hahnn
Posts: 34
Joined: Tue Feb 03, 2009 5:46 am
Location: Luxembourg
Contact:

nothing for cartdrige usage

Post by hahnn »

Hello,

I have cacti 0.8.7.c.
graphs for network statistics and total printed pages are OK, for my HP laserjet printers.
But total and used level of ink are always to 0.

What I don't understand is that snmpwalk returns correct values:

snmpwalk -v 1 -c public myprintername .1.3.6.1.2.1.43.11.1.1 gives:
SNMPv2-SMI::mib-2.43.11.1.1.2.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.2 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.3.1.1 = INTEGER: 0
SNMPv2-SMI::mib-2.43.11.1.1.3.1.2 = INTEGER: 0
SNMPv2-SMI::mib-2.43.11.1.1.4.1.1 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.2 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.5.1.1 = INTEGER: 21
SNMPv2-SMI::mib-2.43.11.1.1.5.1.2 = INTEGER: 15
SNMPv2-SMI::mib-2.43.11.1.1.6.1.1 = STRING: "Black Print Cartridge HP C8543X"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.2 = STRING: "Maintenance Kit HP 110V-C9152A, 220V-C9153A"
SNMPv2-SMI::mib-2.43.11.1.1.7.1.1 = INTEGER: 7
SNMPv2-SMI::mib-2.43.11.1.1.7.1.2 = INTEGER: 7
SNMPv2-SMI::mib-2.43.11.1.1.8.1.1 = INTEGER: 23000
SNMPv2-SMI::mib-2.43.11.1.1.8.1.2 = INTEGER: 350000
SNMPv2-SMI::mib-2.43.11.1.1.9.1.1 = INTEGER: 8510
SNMPv2-SMI::mib-2.43.11.1.1.9.1.2 = INTEGER: 295787

you can see that for the cartridge, total level is 23000, and remaining usage is 8510. That corresponds to what I see when accessing this printer via HTTP and displaying status: it says the tooner is at 37%. And when I divide 8510 by 23000, I obtain 0.37.

Can somebody explain why and how I can fix the template to have correct graph of tooner level ?

Any help greatly appreciated :-)
Thanks a lot
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest