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 |
+---------------------------------------------------+------------------------------------------+
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 |
+--------------------------------------------------------------+------------------------------------------+
Regards!
Thanks!