Can Cacti display string instead of displaying numeric data

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

Moderators: Developers, Moderators

Post Reply
SilentFrame
Posts: 2
Joined: Mon Jan 15, 2007 11:32 am

Can Cacti display string instead of displaying numeric data

Post by SilentFrame »

Hi,

This is probably the most common and/or stupid question. I'm new to the cacti technology.
I intend to graph data but i also need to show string all retrieved thanks to SNMP for our custom MIBS. The strings will be the names and the versions of the software installed on the remote devices.
I read the manual, serach in the forums but found nothing if this is possible or not. I want that the strings to be seen as "output" not "input" in a snmp XML query for example.

I need your advices, suggestions.

TIA,
SilentFrame.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If the data is organizable as a Table, such as are Interface Statistics, you can write a Data Query to present.

Even if it's not, you could take a small performance penalty and write it as a Script Server Data Query in which you could then organize the data as a table and produce your output on the Graph using the special |query_XMLTagname| syntax from within the graphs themselves.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit my Tutorials. You'll find hints for displaying text strings retrieved from targets. Look out for |query_*| stuff and for XML fields with "<direction>input</direction>"
Reinhard
SilentFrame
Posts: 2
Joined: Mon Jan 15, 2007 11:32 am

i miss to tell you something

Post by SilentFrame »

Thanks for your help.

I've read the tutorials (btw, there are great) but they did not tell me if i can display strings in table-like form instead of a graph with numerical values. The values itself are strings not numerical values i need to display some numerical values but they are not right now my priority.

Regards,
Paolo.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

In general, this cannot be done. Cacti is an rrdtool frontend and stores (almost) all data in rrd files. These are only capable of storing numberic data, no strings.
The only excemption to this is storing "descriptiove" information, e.g. ifDescription. These strings are stored e.g. on a per interface basis in mysql tables. But they are only refreshed when re-indexing is performed (e.g. on reboot of the target host)
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest