I would like to have a discussion with the Cacti developers/designers responsible for the data query functionality. Don't get me wrong - it works great in delivering a sorely needed capability (easily collect data without knowing the exact interfaces on a machine, for example). However, I think the design makes it very inflexible.
My main qualm is that a data query replaces a data input method. The definition in the documentation
claims otherwise. However, it doesn't seem to me to be implemented that way. A data query xml file must specify output parameters, and either snmp or an associated script must implement the data retrieval (by handling an arg_get parameter). It would be nice if a data input method could be used to do the data retrieval. I just want the data query to assist the user in creating the data sources - as the definition suggests.Data queries are not a replacement for data input methods in Cacti. Instead they provide an easy way to query, or list data based upon an index, making the data easier to graph.
Lastly, you can look at the database tables. They still have names like "snmp_query" even though they may hold data about script queries. This indicates to me that data queries were designed to address indexed oid's. Thus when lvm tried to write a tutorial on script data queries, he could only really transform the regular snmp query for interfaces into one that does the same thing, only with scripts.