|
|
| Author |
Message |
hahnn
Joined: 03 Feb 2009 Posts: 25
|
Posted: Tue Feb 03, 2009 5:59 am Post subject: nothing for cartdrige usage |
|
|
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 |
|
| Back to top |
|
 |
chet
Joined: 09 Feb 2009 Posts: 41
|
Posted: Wed Feb 18, 2009 10:53 am Post subject: |
|
|
How do people work out which value means what?
I have just tried this template and I get
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/printer_supply.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.43.11.1.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/printer_supply.xml'
Thanks |
|
| Back to top |
|
 |
chet
Joined: 09 Feb 2009 Posts: 41
|
Posted: Fri Feb 20, 2009 4:43 am Post subject: |
|
|
Could somebody confirm that I need to do the following please.
Copy to my /resource/snmp_queries
| Code: | cacti_host_template_snmp_printer
cacti_graph_template_host_mib_total_printed_pages
cacti_graph_template_host_mib_available_printer_supply
cacti_data_template_host_mib_get_printer_total_pages
cacti_data_template_host_mib_get_printer_supply |
Are imported through Import Templates
| Code: | | cacti_data_query_snmp_get_printer_supply |
Where does this one need to go
I know they are basic questions but I can not find any post on here that explains How-To for a first time attempt.
I will learn honest |
|
| Back to top |
|
 |
chet
Joined: 09 Feb 2009 Posts: 41
|
Posted: Sat Feb 21, 2009 4:46 pm Post subject: |
|
|
| why has nobody answered this? |
|
| Back to top |
|
 |
chet
Joined: 09 Feb 2009 Posts: 41
|
Posted: Sun Mar 01, 2009 3:40 pm Post subject: |
|
|
| I dont understand wht I do not get any replies, did I do something wrong? |
|
| Back to top |
|
 |
|