Hi all,
I am trying to graph the usage of a xerox laser printer, showing the number of pages & faxes used (impressions)
Below I have shown an snmpwalk of the relevent OIDs. I cannot find any index OID information in the printer, so I am using the oid_index_parse parameter in my data query. Below the walk, you'll see my query. Below the query you'll see the output from a cacti Verbose Query execution....and you'll see that my parsed OID index seems to work.
However, when I choose to Create Graphs For This Host, and then select a graph to create, I get an error:
Notice: Undefined index: sgg_10 in /usr/share/cacti/site/graphs_new.php on line 71
Warning: Cannot modify header information - headers already sent by (output started at /usr/share/cacti/site/graphs_new.php:71) in /usr/share/cacti/site/graphs_new.php on line 322
It seems to be that cacti doesn't have a sensible index to use from my query - my parsed OID index will give me indexes in triplets (eg. 1.1.1 , 1.1.2, 1.6.1 etc etc - see the output from the Verbose Query) - so I suspect that cacti can't derive an index from this - there isn't a column in the Create Graphs page that has in index in it, I can only see the strings returned from .1.3.6.1.4.1.253.8.53.13.2.1.8 and nothing else, whereas I note in all other device query results, the table has incremental indices for each graphable item.
What can I do to fix this ?
thanks
-Trevor.
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.6.1 = INTEGER: 0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.1 = INTEGER: 52522
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.7 = INTEGER: 18040
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.8 = INTEGER: 37488
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.29 = INTEGER: 24429
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.33 = INTEGER: 25267
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.34 = INTEGER: 27255
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.43 = INTEGER: 3005
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.1.20.44 = INTEGER: 209
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.101.20.1 = INTEGER: 25267
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.101.20.2 = INTEGER: 27255
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.101.20.3 = INTEGER: 3005
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.101.20.4 = INTEGER: 52522
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.102.20.11 = INTEGER: 647
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.102.20.12 = INTEGER: 0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.102.20.18 = INTEGER: 0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.103.20.3 = INTEGER: 8737
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.103.20.4 = INTEGER: 7832
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.103.20.25 = INTEGER: 838
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.104.20.13 = INTEGER: 855
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.104.20.14 = INTEGER: 478
SNMPv2-SMI::enterprises.253.8.53.13.2.1.6.104.20.15 = INTEGER: 478
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.1.1 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.1.2 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.6.1 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.1 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.7 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.8 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.29 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.33 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.34 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.43 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.1.20.44 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.101.20.1 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.101.20.2 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.101.20.3 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.101.20.4 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.102.20.11 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.102.20.12 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.102.20.18 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.103.20.3 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.103.20.4 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.103.20.25 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.104.20.13 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.104.20.14 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.7.104.20.15 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.1.1 = STRING: "PaperSizeGroupSetting:{notSetting(0), JP(1), NA(2), EU(3), AP(4), SA(5)}"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.1.2 = STRING: "PaperSize8KSetting:{notSetting(0), 8K-TW(1), 8K-GCO(2)}"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.6.1 = STRING: "The Great Tree Mincing Thing"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.1 = STRING: "Total Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.7 = STRING: "Black Printed Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.8 = STRING: "Black Printed Sheets"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.29 = STRING: "Color Printed Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.33 = STRING: "Color Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.34 = STRING: "Black Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.43 = STRING: "Color Large Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.1.20.44 = STRING: "Black Large Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.101.20.1 = STRING: "meter1"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.101.20.2 = STRING: "meter2"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.101.20.3 = STRING: "meter3"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.101.20.4 = STRING: "meter4"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.102.20.11 = STRING: "Black Network Images Sent"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.102.20.12 = STRING: "Black E-mail Images Sent"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.102.20.18 = STRING: "Black Internet Fax Images Sent"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.103.20.3 = STRING: "Black Copied Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.103.20.4 = STRING: "Black Copied Sheets"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.103.20.25 = STRING: "Color Copied Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.104.20.13 = STRING: "Black Fax Images Sent"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.104.20.14 = STRING: "Black Faxed Impressions"
SNMPv2-SMI::enterprises.253.8.53.13.2.1.8.104.20.15 = STRING: "Black Faxed Sheets"
<interface>
<name>Xerox printer information</name>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.253.8.53.13.2.1.7</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
<fields>
<deviceLifetimeUsage>
<name>Usage</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.253.8.53.13.2.1.6</oid>
</deviceLifetimeUsage>
<deviceLifetimeUsageString>
<name>Description</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.253.8.53.13.2.1.8</oid>
</deviceLifetimeUsageString>
</fields>
</interface>
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/xerox.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.253.8.53.13.2.1.7'
+ Located input field 'deviceLifetimeUsageString' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.253.8.53.13.2.1.8'
+ Found item [deviceLifetimeUsageString='PaperSizeGroupSetting:{notSetting(0), JP(1), NA(2), EU(3), AP(4), SA(5)}'] index: 1.1.1 [from value]
+ Found item [deviceLifetimeUsageString='PaperSize8KSetting:{notSetting(0), 8K-TW(1), 8K-GCO(2)}'] index: 1.1.2 [from value]
+ Found item [deviceLifetimeUsageString='The Great Tree Mincing Thing'] index: 1.6.1 [from value]
+ Found item [deviceLifetimeUsageString='Total Impressions'] index: 1.20.1 [from value]
+ Found item [deviceLifetimeUsageString='Black Printed Impressions'] index: 1.20.7 [from value]
+ Found item [deviceLifetimeUsageString='Black Printed Sheets'] index: 1.20.8 [from value]
+ Found item [deviceLifetimeUsageString='Color Printed Impressions'] index: 1.20.29 [from value]
+ Found item [deviceLifetimeUsageString='Color Impressions'] index: 1.20.33 [from value]
+ Found item [deviceLifetimeUsageString='Black Impressions'] index: 1.20.34 [from value]
+ Found item [deviceLifetimeUsageString='Color Large Impressions'] index: 1.20.43 [from value]
+ Found item [deviceLifetimeUsageString='Black Large Impressions'] index: 1.20.44 [from value]
+ Found item [deviceLifetimeUsageString='meter1'] index: 101.20.1 [from value]
+ Found item [deviceLifetimeUsageString='meter2'] index: 101.20.2 [from value]
+ Found item [deviceLifetimeUsageString='meter3'] index: 101.20.3 [from value]
+ Found item [deviceLifetimeUsageString='meter4'] index: 101.20.4 [from value]
+ Found item [deviceLifetimeUsageString='Black Network Images Sent'] index: 102.20.11 [from value]
+ Found item [deviceLifetimeUsageString='Black E-mail Images Sent'] index: 102.20.12 [from value]
+ Found item [deviceLifetimeUsageString='Black Internet Fax Images Sent'] index: 102.20.18 [from value]
+ Found item [deviceLifetimeUsageString='Black Copied Impressions'] index: 103.20.3 [from value]
+ Found item [deviceLifetimeUsageString='Black Copied Sheets'] index: 103.20.4 [from value]
+ Found item [deviceLifetimeUsageString='Color Copied Impressions'] index: 103.20.25 [from value]
+ Found item [deviceLifetimeUsageString='Black Fax Images Sent'] index: 104.20.13 [from value]
+ Found item [deviceLifetimeUsageString='Black Faxed Impressions'] index: 104.20.14 [from value]
+ Found item [deviceLifetimeUsageString='Black Faxed Sheets'] index: 104.20.15 [from value]
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/xerox.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/xerox.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/xerox.xml'
graph creation fails using oid_index_parse
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
SNMP XML is not the correct solution for your problem. You may search for HP Laser Printer Templates (a very similar approach) in Scripts and Templates. You would simply have to replace the OIDs found within by yours.
If you prefer developing this from scratch, two approaches may help
- some Data Input Method knowing about all these OIDs and spitting out the results in one print
- a copy of the "SNMP - Generic OID Template" for each OID used combining them by an appropriate graph
Choose one
Reinhard
If you prefer developing this from scratch, two approaches may help
- some Data Input Method knowing about all these OIDs and spitting out the results in one print
- a copy of the "SNMP - Generic OID Template" for each OID used combining them by an appropriate graph
Choose one
Reinhard
Who is online
Users browsing this forum: No registered users and 3 guests