I am trying to implement a new Data Query, which I have done successfully for some data I am pulling from an Oracle database. I have created the XML file, configured a new Data Query, Data Source Template, Graph Template and then associated the Graph Template with the Data Query, but when associating the XML fields to the inputs, I get a blank dropdown. By this I mean the dropdown doesn't even drop down, not just that it's got no values.
See the attached screenshot, and below is my XML file:
Code: Select all
<interface>
<name>Oracle Tablespace Usage</name>
<description>Fetches a list of monitorable tablespaces from /tmp/cacti/tbs_usage.lst</description>
<script_path>/bin/bash |path_cacti|/scripts/query_oracle.sh</script_path>
<arg_prepend>|host_hostname| TBS</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>tbsName</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<tbsName>
<name>Device Name</name>
<direction>input</direction>
<query_name>tbsname</query_name>
</tbsName>
<tbsMax>
<name>Max MB</name>
<direction>output</direction>
<query_name>max_mb</query_name>
</tbsMax>
<tbsTotal>
<name>Size MB</name>
<direction>output</direction>
<query_name>size_mb</query_name>
</tbsTotal>
<tbsUsed>
<name>Used MB</name>
<direction>output</direction>
<query_name>used_mb</query_name>
</tbsUsed>
<tbsFree>
<name>Free MB</name>
<direction>output</direction>
<query_name>free_mb</query_name>
</tbsFree>
<tbsUsedPct>
<name>Percent Used</name>
<direction>output</direction>
<query_name>pct_used</query_name>
</tbsUsedPct>
<tbsFreePct>
<name>Percent Free</name>
<direction>output</direction>
<query_name>pct_free</query_name>
<tbsFreePct>
</fields>
</interface>
Help!!
Cacti version is 1.2.10