I recently upgraded to the latest version of cacti and am trying to add some new graphs for a device. When I try it I get:
"This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information"
When I run in debug mode, I get a whole bunch of data returned, but it ends with:
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Any help would be greatly appreciated.
Thanks
upgraded but can't create graphs now
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: upgraded but can't create graphs now
The upper part is required. The lower part of the debug is of no useashfieldm wrote:I recently upgraded to the latest version of cacti and am trying to add some new graphs for a device. When I try it I get:
"This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information"
When I run in debug mode, I get a whole bunch of data returned, but it ends with:
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
Any help would be greatly appreciated.
Thanks
Reinhard
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
The issue is solved now.
The root cause is the use of the CAST operation with mysql. CAST is not supported. From mysql.com:
Search for CAST to findReplace by . Of course, this will bring problems when using large snmp indices.
Recommendation is to update mysql. Please be aware, that mysql 3.x is way old and not supported any more!
Reinhard
The root cause is the use of the CAST operation with mysql. CAST is not supported. From mysql.com:
A workaround is to revert a recent patch in graphs_new.phpCAST() and CONVERT() are available as of MySQL 4.0.2.
Search for CAST to find
Code: Select all
$sql_order = "ORDER BY CAST(snmp_index AS unsigned)";
Code: Select all
$sql_order = "ORDER BY snmp_index";
Recommendation is to update mysql. Please be aware, that mysql 3.x is way old and not supported any more!
Reinhard
Who is online
Users browsing this forum: No registered users and 3 guests