New Data Query with Get Script Data Indexed

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
drbookreader
Posts: 2
Joined: Thu Sep 03, 2015 3:28 am
Location: Russia

New Data Query with Get Script Data Indexed

Post by drbookreader »

Good day all.

Do you know whether Data Query with Get Script Data Indexed input method can be used to retrieve host-specific variables?
The docs from the Cacti distribution don't explain where to specify host name in the query XML definition and how it should be put to the script.
Please point out the relevant documentation, if any.

Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: New Data Query with Get Script Data Indexed

Post by BSOD2600 »

This section describes building data query templates http://docs.cacti.net/manual:088:3a_adv ... ced_topics

If you want to use the host variables in graph titles/fields, then yes. create the fields as inputs.

What did you want to do with collecting host variables?
drbookreader
Posts: 2
Joined: Thu Sep 03, 2015 3:28 am
Location: Russia

Re: New Data Query with Get Script Data Indexed

Post by drbookreader »

Thanks.

Nevertheless, how to represent "hostname" variable remains unclear.
There should be a built-in one, I guess. For example, Graph Templates accept |host_description|.
The docs don't declare equivalent for Indexed Scripts.

I wanted to program a script which would assist Cacti in graphing a value derived from collected data.
The task, ought to be implemented with rrdtool built-in COMPUTE feature, perhaps.
However, Cacti doesn't support it as of 0.8.8.

So, the most suitable way to make the needed I found is an Indexed Data Query.
Except I do not know how to get indexed output similar to Data Query [SNMP - Interface Statistics].
Without it I'll have to program a GUI to bypass the Cacti.

Can you update me on the COMPUTE status and host_description variable in Indexed Scripts?

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests