SNMP Printer Template
Moderators: Developers, Moderators
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
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
Could somebody confirm that I need to do the following please.
Copy to my /resource/snmp_queries
Are imported through Import Templates
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
Code: Select all
printer_supply
Code: Select all
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
Code: Select all
cacti_data_query_snmp_get_printer_supply
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
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
I know this threads quite old but I started looking at this template today, trying to get it to work against an epson c2800.
chet - this is forum, theres never a guaranteed reply.
cacti_data_query_snmp_get_printer_supply is an xml file that should also be imported I believe
and your snmp query is returning nothing. In my examination, I found that theres too many .1's in the OID for me. so edit the printer_supply.xml file and clean it up. Use snmpwalk from the snmp tools to test first so you can see what the correct OIDs are.
That said, although my verbose output shows the correct values, I'm getting failures myself, so I need to look myself some more.
chet - this is forum, theres never a guaranteed reply.
cacti_data_query_snmp_get_printer_supply is an xml file that should also be imported I believe
and your snmp query is returning nothing. In my examination, I found that theres too many .1's in the OID for me. so edit the printer_supply.xml file and clean it up. Use snmpwalk from the snmp tools to test first so you can see what the correct OIDs are.
That said, although my verbose output shows the correct values, I'm getting failures myself, so I need to look myself some more.
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Hmmm... so the verbose output looks ok (with a .1 removed from the index), but I'm getting an invalid "Result from SNMP not valid. Partial Result:" error in the logs...
+ Running data query [26].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/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'
+ Located input field 'prtMarkersSupplyIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.43.11.1.1'
+ Found item [prtMarkersSupplyIndex='1'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='2'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='0'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='0'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='Toner Cartridge 1158/1162'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='Toner Cartridge 1159/1163'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='Toner Cartridge 1160/1164'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='Toner Cartridge 1161/1165'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='Fuser Unit 3026/3025'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='Transfer Unit 3024'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='100'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='100'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='100'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='100'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='100'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='100'] index: 6 [from value]
+ Found item [prtMarkersSupplyIndex='85'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='86'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='83'] index: 3 [from value]
+ Found item [prtMarkersSupplyIndex='97'] index: 4 [from value]
+ Found item [prtMarkersSupplyIndex='97'] index: 5 [from value]
+ Found item [prtMarkersSupplyIndex='97'] index: 6 [from value]
+ Located input field 'prtMarkersSupplyDesc' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.43.11.1.1.6'
+ Found item [prtMarkersSupplyDesc='Toner Cartridge 1158/1162'] index: 1 [from value]
+ Found item [prtMarkersSupplyDesc='Toner Cartridge 1159/1163'] index: 2 [from value]
+ Found item [prtMarkersSupplyDesc='Toner Cartridge 1160/1164'] index: 3 [from value]
+ Found item [prtMarkersSupplyDesc='Toner Cartridge 1161/1165'] index: 4 [from value]
+ Found item [prtMarkersSupplyDesc='Fuser Unit 3026/3025'] index: 5 [from value]
+ Found item [prtMarkersSupplyDesc='Transfer Unit 3024'] index: 6 [from value]
+ Located input field 'prtMarkersSupplyUnits' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.43.11.1.1.7'
+ Found item [prtMarkersSupplyUnits='4'] index: 1 [from value]
+ Found item [prtMarkersSupplyUnits='4'] index: 2 [from value]
+ Found item [prtMarkersSupplyUnits='4'] index: 3 [from value]
+ Found item [prtMarkersSupplyUnits='4'] index: 4 [from value]
+ Found item [prtMarkersSupplyUnits='4'] index: 5 [from value]
+ Found item [prtMarkersSupplyUnits='4'] index: 6 [from value]
+ 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'
+ 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'
+ 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'
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Heres the manual SNMPwalk
C:\Documents and Settings\marsh>snmpwalk -v1 -c public epsonc2800 .1.3.6.1.2.1.
43.11.1.1
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.2.1.3 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.4 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.5 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.2.1.6 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.3.1.1 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.3.1.2 = INTEGER: 2
SNMPv2-SMI::mib-2.43.11.1.1.3.1.3 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.3.1.4 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.3.1.5 = INTEGER: 0
SNMPv2-SMI::mib-2.43.11.1.1.3.1.6 = 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.4.1.3 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.4 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.5 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.4.1.6 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.5.1.1 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.5.1.2 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.5.1.3 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.5.1.4 = INTEGER: 3
SNMPv2-SMI::mib-2.43.11.1.1.5.1.5 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.5.1.6 = INTEGER: 1
SNMPv2-SMI::mib-2.43.11.1.1.6.1.1 = STRING: "Toner Cartridge 1158/1162"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.2 = STRING: "Toner Cartridge 1159/1163"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.3 = STRING: "Toner Cartridge 1160/1164"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.4 = STRING: "Toner Cartridge 1161/1165"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.5 = STRING: "Fuser Unit 3026/3025"
SNMPv2-SMI::mib-2.43.11.1.1.6.1.6 = STRING: "Transfer Unit 3024"
SNMPv2-SMI::mib-2.43.11.1.1.7.1.1 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.7.1.2 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.7.1.3 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.7.1.4 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.7.1.5 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.7.1.6 = INTEGER: 4
SNMPv2-SMI::mib-2.43.11.1.1.8.1.1 = INTEGER: 100
SNMPv2-SMI::mib-2.43.11.1.1.8.1.2 = INTEGER: 100
SNMPv2-SMI::mib-2.43.11.1.1.8.1.3 = INTEGER: 100
SNMPv2-SMI::mib-2.43.11.1.1.8.1.4 = INTEGER: 100
SNMPv2-SMI::mib-2.43.11.1.1.8.1.5 = INTEGER: 100
SNMPv2-SMI::mib-2.43.11.1.1.8.1.6 = INTEGER: 100
SNMPv2-SMI::mib-2.43.11.1.1.9.1.1 = INTEGER: 85
SNMPv2-SMI::mib-2.43.11.1.1.9.1.2 = INTEGER: 86
SNMPv2-SMI::mib-2.43.11.1.1.9.1.3 = INTEGER: 83
SNMPv2-SMI::mib-2.43.11.1.1.9.1.4 = INTEGER: 97
SNMPv2-SMI::mib-2.43.11.1.1.9.1.5 = INTEGER: 97
SNMPv2-SMI::mib-2.43.11.1.1.9.1.6 = INTEGER: 97
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Why isn't the verbose output showing prtMarkersSupplyUsed ??
I'm trying now to change the XML to :
I'm trying now to change the XML to :
Code: Select all
<interface>
<name>Get Printer Supply Information</name>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.2.1.43.11.1.1.2</oid_index>
<fields>
<prtMarkersSupplyIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.43.11.1.1.2</oid>
</prtMarkersSupplyIndex>
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Re: SNMP Printer Template
So I too am having problems with this. I have a Dell printer and am trying to create a graph with total # of pages printed which can be seen here with snmpwalk
iso.3.6.1.2.1.43.10.2.1.4.1.1 = Counter32: 2587
I have set the Data Temple>Get Printer Total Pages data source type to GAUGE
I have deleted the RRD file
Then I wait until there is some data, but all my graphs either show 0 (thru weekly) or -nan (month, year)
Any suggestions on what I've done wrong?
Thanks much.
iso.3.6.1.2.1.43.10.2.1.4.1.1 = Counter32: 2587
I have set the Data Temple>Get Printer Total Pages data source type to GAUGE
I have deleted the RRD file
Then I wait until there is some data, but all my graphs either show 0 (thru weekly) or -nan (month, year)
Any suggestions on what I've done wrong?
Thanks much.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: SNMP Printer Template
Please follow 2nd link of my sig to get closer
R.
R.
Re:
If you see something like this, make sure that permissions to file printer_supply.xml are global readable.chet wrote: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
To fix, do:
Code: Select all
root@linux:/usr/share/cacti/resource/snmp_queries# chmod 644 printer_supply.xml
Re: SNMP Printer Template
Hi,
i'm using cacti on eyes of network v3.0
Trying to get the total pages printed on a graph, like many have asked on the thread before.
I use the plugings posted by the OP.
I tried several things that i saw in the 4 pages (setting on GAUGE, using rrdcleaner) but i'm really at a lost here. Has there been any "advances" in the area ?
I get that i need to use the "sum" function of cacti but i need to get rid of this incoherent vertical axis problem first.
Obviously i'm a noob but i have to complete this task very in a matter of hours, there is too many stuff to learn in too little time :p
What i get:
I'm supposed to to display the total printed pages.
Any help greatly appreciated ))))
i'm using cacti on eyes of network v3.0
Trying to get the total pages printed on a graph, like many have asked on the thread before.
I use the plugings posted by the OP.
I tried several things that i saw in the 4 pages (setting on GAUGE, using rrdcleaner) but i'm really at a lost here. Has there been any "advances" in the area ?
I get that i need to use the "sum" function of cacti but i need to get rid of this incoherent vertical axis problem first.
Obviously i'm a noob but i have to complete this task very in a matter of hours, there is too many stuff to learn in too little time :p
What i get:
I'm supposed to to display the total printed pages.
Any help greatly appreciated ))))
Re: SNMP Printer Template
hi there, I too am having a problem with this. I am getting 0's for the Supplies in graphs.
the query debug information i am gatting is:-
Any ideas?
thanks
the query debug information i am gatting is:-
So i know values are coming back.+ Running data query [20].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/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'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.2.1.1' value: '1'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.2.1.2' value: '1'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.3.1.1' value: '0'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.3.1.2' value: '0'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.4.1.1' value: '3'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.4.1.2' value: '4'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.5.1.1' value: '3'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.5.1.2' value: '4'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.6.1.1' value: 'Toner Container'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.6.1.2' value: 'Waste Toner Box'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.7.1.1' value: '7'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.7.1.2' value: '7'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.8.1.1' value: '15000'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.8.1.2' value: '-2'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.9.1.1' value: '11250'
+ Index found at OID: '1.3.6.1.2.1.43.11.1.1.9.1.2' value: '-3'
+ Located input field 'prtMarkersSupplyIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.43.11.1.1'
+ Found item [prtMarkersSupplyIndex='1'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='1'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='0'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='0'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='3'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='4'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='Toner Container'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='Waste Toner Box'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='7'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='7'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='15000'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='-2'] index: 2 [from value]
+ Found item [prtMarkersSupplyIndex='11250'] index: 1 [from value]
+ Found item [prtMarkersSupplyIndex='-3'] index: 2 [from value]
+ Located input field 'prtMarkersSupplyDesc' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.43.11.1.1.6'
+ Found item [prtMarkersSupplyDesc='Toner Container'] index: 1 [from value]
+ Found item [prtMarkersSupplyDesc='Waste Toner Box'] index: 2 [from value]
+ Located input field 'prtMarkersSupplyUnits' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.43.11.1.1.7'
+ Found item [prtMarkersSupplyUnits='7'] index: 1 [from value]
+ Found item [prtMarkersSupplyUnits='7'] index: 2 [from value]
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/printer_supply.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/printer_supply.xml'
Any ideas?
thanks
Re: SNMP Printer Template
Try adding the following line to terziyski's printer_supply.xml
and modify <prtMarkersSupplyIndex> like this:
Code: Select all
<oid_index_parse>OID/REGEXP:.*\.([0-9]+)$</oid_index_parse>
Code: Select all
<prtMarkersSupplyIndex>
<name>Index</name>
<source>index</source>
<direction>input</direction>
</prtMarkersSupplyIndex>
Who is online
Users browsing this forum: No registered users and 8 guests