[ZBX-6798] Unreadable errors from UnixODBC library for Database Monitor items Created: 2013 Jul 16 Updated: 2017 May 30 Resolved: 2013 Jul 30 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Proxy (P), Server (S) |
Affects Version/s: | 2.0.7rc1, 2.2.0 |
Fix Version/s: | 2.0.8rc1, 2.1.2 |
Type: | Incident report | Priority: | Major |
Reporter: | Alexey Pustovalov | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | odbc | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
Sometimes unixodbc returns unreadable errors: 7890:20130715:234714.093 Cannot execute ODBC query: (1427). Zabbix does not log an information which can help to determine item, hosts... |
Comments |
Comment by Andris Mednis [ 2013 Jul 29 ] |
Available in svn://svn.zabbix.com/branches/dev/ZBX-6797 r37396. |
Comment by Andris Mednis [ 2013 Jul 30 ] |
Available in svn://svn.zabbix.com/branches/dev/ZBX-6797 r37410. Fixed together with Cannot execute ODBC query:[SQL_ERRORorSQL_NULL_DATA]:[42601][7][ERROR: syntax error at or near ";"; Error while executing the ------------------------- ------------------------ ----- | -------------------------------------------------------------- \- Zabbix msg \- ODBC return code | \- Native error code \- error message. \-SQLState Cannot connect to ODBC DSN:[SQL_ERRORorSQL_NULL_DATA]:[08001][101][[unixODBC]Could not connect to the server;Could not connect -------------------------- ------------------------ ----- | ---------------------------------------------------------- \- Zabbix msg \- ODBC return code | \- Native error code \- error message. \-SQLState |
Comment by Andris Mednis [ 2013 Jul 30 ] |
I deleted SQL_NULL_DATA and SQL_DATA_AT_EXEC from error messages. These values cannot be returned from ODBC functions. Fixed in r37422. Cannot connect to ODBC DSN:[SQL_ERROR]:[08001][101][[unixODBC]Could not connect to the server;Could not connect .. timeout occu |
Comment by Andris Mednis [ 2013 Jul 31 ] |
ODBC calling macro rewritten in 37438. |
Comment by Andris Zeila [ 2013 Jul 31 ] |
Successfully tested |
Comment by Andris Mednis [ 2013 Jul 31 ] |
Fixed in versions pre-2.0.8 rev. 37450 and pre-2.1.2 rev.37500. |
Comment by richlv [ 2013 Aug 01 ] |
(1) sounds like a good chance to advertise odbc in whatsnew andris Added to Zabbix 2.0 documentation: wiper review and CLOSED |