0.8.6a Data Query Fields Question

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Guest

0.8.6a Data Query Fields Question

Post by Guest »

According to the Documention below, There are some query field avaiable for the graphing view, But I can't find a list of the avaiable field. Do anyone know if there is one for DNS Name? I would really like to be able to change "Traffic - eth-s1p1c0" on the top of my graphs to "Traffic - host.domain.com"
Any Help would be great, Thanks. Bryan


Data Query Fields
|query_field_name|

You can place the value of any data query field on the by including this variable. Make sure to substitute "field_name" with the actual data query field name.

Example 15-1. Print the IP Address on a traffic graph

|query_ifIP|
bryancromwell
Posts: 15
Joined: Tue Sep 21, 2004 8:13 pm

Post by bryancromwell »

guest = bryancromwell, Forgot to login
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Look at the format of the Interface.xml file in <webroot>/cacti/snmp_queries directory for some guidance. You should also look at the "Data Query" for Interfaces. It is an excellent example of how Cacti help you pick the prefered label for a graph.

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?
Guest

Post by Guest »

Thanks for the info!
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

For the hostname of the device, try:

Code: Select all

|host_hostname|
-Ian
kjh
Posts: 14
Joined: Wed Jan 18, 2006 2:50 am

Post by kjh »

I've a question about this datafields, too. I'd like to make a website, where all available graphs are listed. This work allready, but I read the titles out of the MySQL database. For example I get this:

xxxxxx.xxxxxx.de.|host_description| - Traffic - |query_ifIP| (|query_ifDescr|)

I allready removed the "|host_description| - " by PHP. The hostname I get out of the MySQL Table "Host". So I get:

xxxxxx.xxxxxx.de.Traffic - |query_ifIP| (|query_ifDescr|)

Are there any possibilities to get in this case the name of the ethernet-card?

Thank you for your help in advance!
kjh
Posts: 14
Joined: Wed Jan 18, 2006 2:50 am

Post by kjh »

I've looked at all Cacti php Files, but can't find any advise to this Strings. Any idears?
kjh
Posts: 14
Joined: Wed Jan 18, 2006 2:50 am

Post by kjh »

For anybody who got the same problem:

easy take from the table "graph_templates_graph" field "title_cache".
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests