Wrong database-content for datasource-name

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

Moderators: Developers, Moderators

Post Reply
TIKA
Posts: 9
Joined: Mon Mar 02, 2009 5:55 am
Location: Dresden Germany

Wrong database-content for datasource-name

Post by TIKA »

Hi all!

System:
Debian-SID
Cacti 0.8.7e with all patches, Boost 2.4 and PA 2.5
PHP Version 5.2.9-4

Example:

I have create a traffic-graph using the pre-installed template "In/Out Bits with Total Bandwidth".
The suggest query-value for the datasource-name is "|host_description| - Traffic - |query_ifIP| - |query_ifName|".

After execution:

Code: Select all

mysql> select name,name_cache from `data_template_data` where name_cache like 'Localhost%Traffic%';
+---------------------------------------------------+------------------------------------------+
| name                                              | name_cache                               |
+---------------------------------------------------+------------------------------------------+
| |host_description| - Traffic - 192.168.0.1 - eth0 | Localhost - Traffic - 192.168.0.1 - eth0 | 
+---------------------------------------------------+------------------------------------------+
Problem:

The field "name" IS NOT as expected "|host_description| - Traffic - |query_ifIP| - |query_ifName|" :-(

Some tests and ever the same result:

Any variable "|query_xyz|" in field "name" was inserted directly.
Please note: "|host_description|" works properly.

A few minutes later (by accident) inside Cacti: "Reapply Suggested Names" for this datasource -> this fix the "problem".

Code: Select all

mysql> select name,name_cache from `data_template_data` where name_cache like 'Localhost%Traffic%';
+--------------------------------------------------------------+------------------------------------------+
| name                                                         | name_cache                               |
+--------------------------------------------------------------+------------------------------------------+
| |host_description| - Traffic - |query_ifIP| - |query_ifName| | Localhost - Traffic - 192.168.0.1 - eth0 | 
+--------------------------------------------------------------+------------------------------------------+
Bug or "Feature" ?

Regards!

Thanks!
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

I'm going to call it a bug. Tony will call it a feature :)

Please submit: http://www.cacti.net/bugs.php
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
TIKA
Posts: 9
Joined: Mon Mar 02, 2009 5:55 am
Location: Dresden Germany

Post by TIKA »

User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Thanks.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests