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
dbi plugin mysql dbi_result_next_row failed #2894
Comments
Sorry, I think I wasn't patient enough. I would suggest using Thanks for the great software btw, I really enjoy using collectd! ;) |
Hi!
Agreed, this is very annoying issue. Personally, I encountered some unpleasant situations due to its presence. But I treat this as an issue in I use 'dbi' plugin with 'mysql' and 'sqlite' drivers. The code of Collectd is the same ;-) and there is no
I think, unfortunately this highly probably will not work as we expect: If you look into
As you can see, there is |
Ouch. That is clearly Debian issue. We have nothing to change in Collectd code. |
Ok.
|
Latest libdbi code sets BADIDX error when no more rows is in 'dbi_result_next_row()' (similar to 'dbi_result_prev_row()' and to match library documentation). There is confusing errors in Collectd logs due to this change. Added a 'dbi_result_has_next_row()' check to solve. Closes: collectd#2894
Latest libdbi code sets BADIDX error when no more rows is in 'dbi_result_next_row()' (similar to 'dbi_result_prev_row()' and to match library documentation). There is confusing errors in Collectd logs due to this change. Added a 'dbi_result_has_next_row()' check to solve. Closes: collectd#2894
Hi any plan on releasing this fix into a new version? Thanks |
This fix is already in |
Expected behavior
Write query results into gauge
Actual behavior
system log:
This error repeats. Looking through the headers it seams to be an
DBI_ERROR_BADIDX
.It seems that connecting as well as querying work fine, but for some reason attempting to read the next row fails. The query has been simplified My guess is the error occurs here:
collectd/src/dbi.c
Lines 608 to 615 in 065f3ea
Steps to reproduce
collectd.conf (query has been simplified, different number of result lines tried, but even this yields an error):
The text was updated successfully, but these errors were encountered: