0.8.6a Data Query Fields Question
Moderators: Developers, Moderators
0.8.6a Data Query Fields Question
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|
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|
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
For the hostname of the device, try:
-Ian
Code: Select all
|host_hostname|
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!
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!
Who is online
Users browsing this forum: No registered users and 0 guests