cacti icon indicating copy to clipboard operation
cacti copied to clipboard

snmp_query_graph table missing IPv4/IPv6 Counters in Dropdown

Open reubenfarrelly opened this issue 8 years ago • 6 comments

Following on from https://github.com/Cacti/cacti/issues/261 - I believe something was missed in this enhancement. While the .xml file is now correct, we are not seeing the IPv4/IPv6 specific counters in the Graph Type dropdown when creating graphs for a device.

I suspect this could be due to missing entries in the snmp_query_graph table.

This is with a clean install of Cacti 1.0.2 (I haven't even run the poller for the first time yet...)

reubenfarrelly avatar Feb 12 '17 19:02 reubenfarrelly

Well, we only added the counters, we don't have any templates associated with them yet. If you would like to submit your suggestions via a pull request, we could evaluate.

cigamit avatar Feb 13 '17 00:02 cigamit

I'm not even slightly capable of writing code so this may well not be all that is needed, but I imagine we'd need something like this:

--- cacti.sql 2017-02-13 19:42:52.719450668 +1100 +++ cacti.sql 2017-02-13 20:36:12.662376812 +1100 @@ -3092,6 +3092,10 @@ INSERT INTO snmp_query_graph VALUES (20,'ed7f68175d7bb83db8ead332fc945720',1,'In/Out Bits with 95th Percentile',31); INSERT INTO snmp_query_graph VALUES (21,'f85386cd2fc94634ef167c7f1e5fbcd0',1,'In/Out Bits with Total Bandwidth',32); INSERT INTO snmp_query_graph VALUES (22,'7d309bf200b6e3cdb59a33493c2e58e0',1,'In/Out Bytes with Total Bandwidth',33); +INSERT INTO snmp_query_graph VALUES (25, '5ab534a5a4e4438589672577f9d052cd', 1, 'In/Out Bits IPv4', 2); +INSERT INTO snmp_query_graph VALUES (26, 'c9a4727b57704a7207b73512f1049ca4', 1, 'In/Out Bits IPv6', 2); +INSERT INTO snmp_query_graph VALUES (38, '6ed8b5cefa6c1e5f34d7f91a63f603ad', 1, 'In/Out Bits IPv4 (64 Bit Counters)', 2), +INSERT INTO snmp_query_graph VALUES (39, 'e586df2678b6752e3fa084241606d062', 1, 'In/Out Bits IPv6 (64 Bit Counters)', 2);

-- -- Table structure for table snmp_query_graph_rrd

I have created my graphs in the web interface so it's not clear if the creation process touched more than just this SQL table or not. What I do in my legacy system is just use the existing graph template but use a slightly different SNMP OID to feed into the data source.

reubenfarrelly avatar Feb 13 '17 09:02 reubenfarrelly

@reubenfarrelly you could just export the data query and then we can work from there to integrate it. Please attach your data query export with all children.

ronytomen avatar May 29 '17 01:05 ronytomen

Thanks Reuben. Are these included in your other ticket?

cigamit avatar Feb 11 '18 21:02 cigamit

I think this may have been Part 2 that follows on from the previous ticket. It has been a while now so I can't be 100% sure.

reubenfarrelly avatar Feb 11 '18 22:02 reubenfarrelly