Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Data Queries <-> Data Templates

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
jvanhambelgium



Joined: 10 Jan 2003
Posts: 33
Location: Antwerpen (Belgium)

PostPosted: Sun May 11, 2003 12:25 pm    Post subject: Data Queries <-> Data Templates Reply with quote

Hi,

After spending some time on 0.8 I'm starting to get stuff working.
My biggest confuse is the difference between Data Queries & Data Templates ;
Could someone correct/add sometime to this please, is it correct to assume ;

- Data templates is a template for 1 item (like 1 SNMP OID, like % CPU) that you later can use as template for multiple hosts ?

- Data queries seems (looking into the XML file) a bunch of items (like dozens of SNMP OID's) that are queried together, thus making a 'package" to efficiently extract a given set of info from a device ?
If I want to monitor specific equipment I could write a XML with 10 or 20 SNMP OID's that will be grouped/polled together ? Is it something like this ?
I've seen also that you can glue a bunch of graph-templates to the multiple queries from the data-query..

- You don't need to use Data Queries ; a combination of Polling host and data/host/graph templates will also do the trick ?



Thanks & regards,
Jan
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Mon May 12, 2003 11:57 pm    Post subject: Reply with quote

Actually you are almost completely accurate in your descriptions of data templates and data queries.

A data template is really a 'Data Source Template', it is nothing more than that. Like you said, it is good for templating one thing like CPU load on a Cisco 2900 or disk space on my UCD-SNMP server.

Data queries serve a different purpose however. While data templates are concerned with how data is stored, data queries just handle the "querying of data" from a host to potentially graph. This querying can be done through either SNMP (SNMP Query) or a script (Script Query).

So I guess the answer to your last question: do you need to use data queries? No, but data queries serve a different purpose from data/graph/host templates. You could not duplicate the functionaliy of a data query through the use of data/graph/host templates alone.

I hope this answers your questions. Documentation is coming

-Ian
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group