I am adding a new graph rule and the 1st issue is that when I change the Data Query to 'SNMP Interface Statistics' it just reverts to 'Cacti Stats - Data Collector Stats'. If I click create with that query I see the following error in cacti.log:
Code: Select all
2019/10/02 12:00:57 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '|arg1:snmp_query_id| ORDER BY snmp_query_graph.name' at line 1
2019/10/02 12:00:57 - CMDPHP SQL Backtrace: (/automation_graph_rules.php[79]:automation_graph_rules_edit(), /automation_graph_rules.php[608]:draw_edit_form(), /lib/html_form.php[114]:draw_edit_control(), /lib/html_form.php[280]:db_fetch_assoc(), /lib/database.php[452]:db_fetch_assoc_prepared(), /lib/database.php[466]:db_execute_prepared())
Code: Select all
2019/10/02 12:01:58 - CMDPHP ERROR: A DB Row Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '|arg1:snmp_query_id| ORDER BY snmp_query_graph.name' at line 1
2019/10/02 12:01:58 - CMDPHP SQL Backtrace: (/automation_graph_rules.php[79]:automation_graph_rules_edit(), /automation_graph_rules.php[608]:draw_edit_form(), /lib/html_form.php[114]:draw_edit_control(), /lib/html_form.php[280]:db_fetch_assoc(), /lib/database.php[452]:db_fetch_assoc_prepared(), /lib/database.php[466]:db_execute_prepared())
Code: Select all
SELECT snmp_query_graph.id, snmp_query_graph.name FROM snmp_query_graph WHERE snmp_query_graph.snmp_query_id=|arg1:snmp_query_id| ORDER BY snmp_query_graph.name
What can I do to fix this or debug further? Thanks!