Hello.
Im trying to create new possibility in cacti to monitor QoS.
I created Data Template with two data source items (in and out).
Data Input Method - Get Script Data (Indexed).
Everything else like normal (in custom data we have index type, index value, output type id, all checked)
Ok, everything is nice.
Next i duplicated graph from Interface - Traffic (bytes/sec). Ofcourse deleted old Graph Item Inputs and to Graph Template Items attached values from my Data Templates (in and out).
Ok. lets go deeper.
I created xml:
<interface>
<name>Get QoS PrePolicy</name>
<description>Queries a list of interfaces nad DSCP classes.</description>
<script_path>|path_php_binary| -q |path_cacti|/scripts/query_device_qos_prepolicy.php</script_path>
<arg_prepend>|host_hostname| |host_snmp_community| |host_snmp_version|</arg_prepend>
<arg_index>index</arg_index>
<arg_query>query</arg_query>
<arg_get>get</arg_get>
<arg_num_indexes>num_indexes</arg_num_indexes>
<output_delimeter>!</output_delimeter>
<index_order>qosPrePolicyInterface:qosPrePolicyDSCP</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<qosIndex>
<name>Index</name>
<direction>input</direction>
<query_name>index</query_name>
</qosIndex>
<qosPre>
<name>Interface</name>
<direction>input</direction>
<query_name>interface</query_name>
</qosPre>
<qosDSCP>
<name>DSCP</name>
<direction>input</direction>
<query_name>DSCP</query_name>
</qosDSCP>
<qosPrePolicyIncoming>
<name>Incoming</name>
<direction>output</direction>
<query_name>incoming</query_name>
</qosPrePolicyIncoming>
<qosPrePolicyOutgoing>
<name>Outgoing</name>
<direction>output</direction>
<query_name>outgoing</query_name>
</qosPrePolicyOutgoing>
</fields>
</interface>
Ofcourse script query_device_qos_prepolicy.php have index, get and query implemented. Everything works as normal script (like query_unix_partitions.pl).
Ok. I created Data Queries with this xml. Ok. I attached my Graph template to this Data query
I got qosPrePolicyIncoming and qosPrePolicyOutgoing in Data Sources. I checked them, and saved.
Now i went to devies section, attached my data query. Verbose Query show me nice otuput.
+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at '/home/services/httpd/html/cacti/resource/script_queries/qos_prepolicy.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /home/services/httpd/html/cacti/scripts/query_device_qos_prepolicy.php 10.129.129.130 public 2 index'
+ Executing script query '/usr/bin/php -q /home/services/httpd/html/cacti/scripts/query_device_qos_prepolicy.php 10.129.129.130 public 2 query index'
+ Found item [qosIndex='1.65'] index: 1.65
+ Found item [qosIndex='2.65'] index: 2.65
+ Found item [qosIndex='3.65'] index: 3.65
+ Found item [qosIndex='4.65'] index: 4.65
+ Found item [qosIndex='5.65'] index: 5.65
+ Found item [qosIndex='6.65'] index: 6.65
+ Found item [qosIndex='7.65'] index: 7.65
+ Found item [qosIndex='8.65'] index: 8.65
+ Found item [qosIndex='9.65'] index: 9.65
+ Found item [qosIndex='10.65'] index: 10.65
+ Found item [qosIndex='11.1'] index: 11.1
+ Found item [qosIndex='11.3'] index: 11.3
+ Found item [qosIndex='11.9'] index: 11.9
+ Found item [qosIndex='11.11'] index: 11.11
+ Found item [qosIndex='11.15'] index: 11.15
+ Found item [qosIndex='11.17'] index: 11.17
+ Found item [qosIndex='11.19'] index: 11.19
+ Found item [qosIndex='11.21'] index: 11.21
+ Found item [qosIndex='11.23'] index: 11.23
+ Found item [qosIndex='11.25'] index: 11.25
+ Found item [qosIndex='11.27'] index: 11.27
+ Found item [qosIndex='11.35'] index: 11.35
+ Found item [qosIndex='11.47'] index: 11.47
+ Found item [qosIndex='11.49'] index: 11.49
+ Found item [qosIndex='11.57'] index: 11.57
+ Found item [qosIndex='11.65'] index: 11.65
+ Found item [qosIndex='12.65'] index: 12.65
+ Found item [qosIndex='13.65'] index: 13.65
+ Found item [qosIndex='14.65'] index: 14.65
+ Found item [qosIndex='15.65'] index: 15.65
+ Found item [qosIndex='16.65'] index: 16.65
+ Found item [qosIndex='17.65'] index: 17.65
+ Found item [qosIndex='18.65'] index: 18.65
+ Found item [qosIndex='19.65'] index: 19.65
+ Found item [qosIndex='20.65'] index: 20.65
+ Found item [qosIndex='21.65'] index: 21.65
+ Found item [qosIndex='22.65'] index: 22.65
+ Found item [qosIndex='23.65'] index: 23.65
+ Found item [qosIndex='24.65'] index: 24.65
+ Found item [qosIndex='25.65'] index: 25.65
+ Found item [qosIndex='26.65'] index: 26.65
+ Executing script query '/usr/bin/php -q /home/services/httpd/html/cacti/scripts/query_device_qos_prepolicy.php 10.129.129.130 public 2 query interface'
+ Found item [qosPrePolicyInterface='1'] index: 1.65
+ Found item [qosPrePolicyInterface='2'] index: 2.65
+ Found item [qosPrePolicyInterface='3'] index: 3.65
+ Found item [qosPrePolicyInterface='4'] index: 4.65
+ Found item [qosPrePolicyInterface='5'] index: 5.65
+ Found item [qosPrePolicyInterface='6'] index: 6.65
+ Found item [qosPrePolicyInterface='7'] index: 7.65
+ Found item [qosPrePolicyInterface='8'] index: 8.65
+ Found item [qosPrePolicyInterface='9'] index: 9.65
+ Found item [qosPrePolicyInterface='10'] index: 10.65
+ Found item [qosPrePolicyInterface='11'] index: 11.1
+ Found item [qosPrePolicyInterface='11'] index: 11.3
+ Found item [qosPrePolicyInterface='11'] index: 11.9
+ Found item [qosPrePolicyInterface='11'] index: 11.11
+ Found item [qosPrePolicyInterface='11'] index: 11.15
+ Found item [qosPrePolicyInterface='11'] index: 11.17
+ Found item [qosPrePolicyInterface='11'] index: 11.19
+ Found item [qosPrePolicyInterface='11'] index: 11.21
+ Found item [qosPrePolicyInterface='11'] index: 11.23
+ Found item [qosPrePolicyInterface='11'] index: 11.25
+ Found item [qosPrePolicyInterface='11'] index: 11.27
+ Found item [qosPrePolicyInterface='11'] index: 11.35
+ Found item [qosPrePolicyInterface='11'] index: 11.47
+ Found item [qosPrePolicyInterface='11'] index: 11.49
+ Found item [qosPrePolicyInterface='11'] index: 11.57
+ Found item [qosPrePolicyInterface='11'] index: 11.65
+ Found item [qosPrePolicyInterface='12'] index: 12.65
+ Found item [qosPrePolicyInterface='13'] index: 13.65
+ Found item [qosPrePolicyInterface='14'] index: 14.65
+ Found item [qosPrePolicyInterface='15'] index: 15.65
+ Found item [qosPrePolicyInterface='16'] index: 16.65
+ Found item [qosPrePolicyInterface='17'] index: 17.65
+ Found item [qosPrePolicyInterface='18'] index: 18.65
+ Found item [qosPrePolicyInterface='19'] index: 19.65
+ Found item [qosPrePolicyInterface='20'] index: 20.65
+ Found item [qosPrePolicyInterface='21'] index: 21.65
+ Found item [qosPrePolicyInterface='22'] index: 22.65
+ Found item [qosPrePolicyInterface='23'] index: 23.65
+ Found item [qosPrePolicyInterface='24'] index: 24.65
+ Found item [qosPrePolicyInterface='25'] index: 25.65
+ Found item [qosPrePolicyInterface='26'] index: 26.65
+ Executing script query '/usr/bin/php -q /home/services/httpd/html/cacti/scripts/query_device_qos_prepolicy.php 10.129.129.130 public 2 query DSCP'
+ Found item [qosPrePolicyDSCP='65'] index: 1.65
+ Found item [qosPrePolicyDSCP='65'] index: 2.65
+ Found item [qosPrePolicyDSCP='65'] index: 3.65
+ Found item [qosPrePolicyDSCP='65'] index: 4.65
+ Found item [qosPrePolicyDSCP='65'] index: 5.65
+ Found item [qosPrePolicyDSCP='65'] index: 6.65
+ Found item [qosPrePolicyDSCP='65'] index: 7.65
+ Found item [qosPrePolicyDSCP='65'] index: 8.65
+ Found item [qosPrePolicyDSCP='65'] index: 9.65
+ Found item [qosPrePolicyDSCP='65'] index: 10.65
+ Found item [qosPrePolicyDSCP='1'] index: 11.1
+ Found item [qosPrePolicyDSCP='3'] index: 11.3
+ Found item [qosPrePolicyDSCP='9'] index: 11.9
+ Found item [qosPrePolicyDSCP='11'] index: 11.11
+ Found item [qosPrePolicyDSCP='15'] index: 11.15
+ Found item [qosPrePolicyDSCP='17'] index: 11.17
+ Found item [qosPrePolicyDSCP='19'] index: 11.19
+ Found item [qosPrePolicyDSCP='21'] index: 11.21
+ Found item [qosPrePolicyDSCP='23'] index: 11.23
+ Found item [qosPrePolicyDSCP='25'] index: 11.25
+ Found item [qosPrePolicyDSCP='27'] index: 11.27
+ Found item [qosPrePolicyDSCP='35'] index: 11.35
+ Found item [qosPrePolicyDSCP='47'] index: 11.47
+ Found item [qosPrePolicyDSCP='49'] index: 11.49
+ Found item [qosPrePolicyDSCP='57'] index: 11.57
+ Found item [qosPrePolicyDSCP='65'] index: 11.65
+ Found item [qosPrePolicyDSCP='65'] index: 12.65
+ Found item [qosPrePolicyDSCP='65'] index: 13.65
+ Found item [qosPrePolicyDSCP='65'] index: 14.65
+ Found item [qosPrePolicyDSCP='65'] index: 15.65
+ Found item [qosPrePolicyDSCP='65'] index: 16.65
+ Found item [qosPrePolicyDSCP='65'] index: 17.65
+ Found item [qosPrePolicyDSCP='65'] index: 18.65
+ Found item [qosPrePolicyDSCP='65'] index: 19.65
+ Found item [qosPrePolicyDSCP='65'] index: 20.65
+ Found item [qosPrePolicyDSCP='65'] index: 21.65
+ Found item [qosPrePolicyDSCP='65'] index: 22.65
+ Found item [qosPrePolicyDSCP='65'] index: 23.65
+ Found item [qosPrePolicyDSCP='65'] index: 24.65
+ Found item [qosPrePolicyDSCP='65'] index: 25.65
+ Found item [qosPrePolicyDSCP='65'] index: 26.65
+ Found data query XML file at '/home/services/httpd/html/cacti/resource/script_queries/qos_prepolicy.xml'
+ Found data query XML file at '/home/services/httpd/html/cacti/resource/script_queries/qos_prepolicy.xml'
+ Found data query XML file at '/home/services/httpd/html/cacti/resource/script_queries/qos_prepolicy.xml'
Nice. So i clicked to create graphs for this host. I got table with columns (Index, Interface, DSCP) and possibility to check them. I checked one of them and clicked "Create".
I got nice messgae that the graph has been created. I go to "Data Soruces" section and i saw my created source (when i created graph).
And here is my problem:
I click on the title and got table with:
Index Type - Data query data sources must be created through New Graphs.
Index Value - [empty]
Output Type ID - Data query data sources must be created through New Graphs.
And ofcourse data is not collected. What im doing wrong?
When i create graph for normal data source template (for example SNMP - Interface Statistics) i can choose in Index Type and Output Type ID.
In my data source, i cant. I was watching sql executions, but i could figure out, what is going on wrong :/
Any help?
Problem with data sources (new QoS monitoring) - no data.
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 1 guest