Graphing Text Strings

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

Moderators: Developers, Moderators

Post Reply
columnarius
Posts: 1
Joined: Mon Jun 11, 2007 1:44 pm

Graphing Text Strings

Post by columnarius »

I'm trying to find an example of how to graph text strings that change over time. Want to figure out a way to change the color of the line or alter the graph in some other visually meaningful way as the text changes.

Example would be to poll a router for its IOS version and graph that over time to compare against other stats.

Apologies if this is covered somewhere but I couldn't find it.

Thanks.
seedar2
Posts: 4
Joined: Sat Jun 23, 2007 1:59 pm

Graphing Text Strings

Post by seedar2 »

Hello,

I have exactly the same problem. How to place string information from SNMP like sysLocation, sysContact etc. on the graph but not in the title. And additional do anybody know how to place indexed string information like "cdp neighbours" (of course in Cisco's devices).

Regards

seedar
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Data query values are easy. Graph Template are not so easy. If you want a data query value, it goes like this:

|query_myXML_tag_name|

That's all.

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?
seedar2
Posts: 4
Joined: Sat Jun 23, 2007 1:59 pm

Graphing Text Strings

Post by seedar2 »

Hello,

Thanks for your answer. Now it is very easy but only for indexed value (for example Interface description, IP address etc.) But how I can to place non-indexed value (operating system version, system location etc).

Regards

seedar
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That would be a feature request. Please submit it here: bugs.cacti.net Please be as specific as possible.

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
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Before you go that far, look at the Cacti 0.8.6k release notes. Of course a Data Query works fine. I have thought of this for Graph Template based as well...

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
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

TheWitness wrote:Before you go that far, look at the Cacti 0.8.6k release notes. Of course a Data Query works fine. I have thought of this for Graph Template based as well...

TheWitness
I'd like it to be able to pull out text strings just so that they can be used as a GPRINT on a graph.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How about from an arbitrary sql query? :)

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
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

TheWitness wrote:How about from an arbitrary sql query? :)

TheWitness
That works too, just so that if the equipment has text that can be gotten via SNMP, it can be displayed. I've toyed with a couple different ways to do it, and so far, I haven't had much luck.

Edit:

I just went and looked at one of the things I was working with and had a thought.

Could it be possible to add maybe three or four SNMP queries to each device that could be defined as TEXT only queries? Like when you're setting up a new device, you could give it an OID you want it to poll and be a text only query. That could then be dumped into a new table (new table because of this idea) and then retrieved via a GPRINT on a graph template?

Does that make sense?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's why I like the idea of a database select. Then, plugin developers could write templates that present their text information in the form of a gprint.

I am not sure exactly how I would do it. I'll have to talk to the development team.

Larry
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests