New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Source Statistics SQL error #1033
Comments
Yup, searching the code in just a few minutes. |
I've committed a patch. Let me know if it works. The only think I can think of is that this is a holdover from the earlier versions of dsstats. |
No feedback. I'm sure it's working though. |
Sorry I just had a chance to upgrade. I'm still seeing these issues: 2017/11/12 23:19:02 - ERROR PHP NOTICE: Undefined offset: 1 in file: /cacti/cacti-1.1.27-prod/lib/dsstats.php on line: 259 2017/11/12 23:19:02 - CMDPHP PHP ERROR NOTICE Backtrace: (/poller_dsstats.php: 191 dsstats_get_and_store_ds_avgpeak_values)(/lib/dsstats.php: 64 dsstats_obtain_data_source_avgpeak_values)(/lib/dsstats.php: 259 CactiErrorHandler)(/lib/functions.php: 4408 cacti_debug_backtrace) 2017/11/12 23:18:45 - CMDPHP ERROR: A DB Exec Failed!, Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' NULL), (31213, 'inst_volts_an', 285.033, 285.033), (31213, 'inst_volts_bn', 286' at line 1 2017/11/12 23:18:45 - CMDPHP SQL Backtrace: (/poller.php: 539 process_poller_output)(/lib/poller.php: 508 dsstats_poller_output)(/lib/dsstats.php: 684 db_execute)(/lib/database.php: 135 db_execute_prepared)(/lib/database.php: 208 cacti_debug_backtrace) 2017/11/12 23:17:45 - CMDPHP ERROR: A DB Exec Failed!, Error: Unknown column 'nan' in 'field list' 2017/11/12 23:17:45 - CMDPHP SQL Backtrace: (/poller.php: 539 process_poller_output)(/lib/poller.php: 508 dsstats_poller_output)(/lib/dsstats.php: 681 db_execute)(/lib/database.php: 135 db_execute_prepared)(/lib/database.php: 208 cacti_debug_backtrace) And now I get the added benefit of seeing a bunch of these type messages too: 2017/11/12 23:19:02 - DSSTATS WARNING: File '/cacti/cacti-1.1.27-prod/rra/xxx_55042.rrd' Does not exist 2017/11/12 23:19:02 - DSSTATS WARNING: File '/cacti/cacti-1.1.27-prod/rra/yyy_55043.rrd' Does not exist 2017/11/12 23:19:06 - DSSTATS WARNING: File '/cacti/cacti-1.1.27-prod/rra/zzz_58499.rrd' Does not exist |
Missed that case. 'Nan' for guages.... |
Resolved. |
Another Update to cover guages and absolute
I'm getting this error in my logs when I enable Data Source Statistics collection
This is the part that trips it up:
I am not sure why this particular data source is returning '-' values but it's not working with the INSERT very well. The '-' should probably be NULL.
The text was updated successfully, but these errors were encountered: