[ZBX-7191] Unhandled ODBC monitoring error should not bring down zabbix server Created: 2013 Oct 23 Updated: 2022 Jul 28 Resolved: 2013 Oct 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.1.8 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Arli | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | odbc | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix 2.1.8 (second beta) |
Description |
When database monitoring feature encounters ODBC exception it can't handle, then instead of just marking this item as Not supported, the entire zabbix server shuts down. Would be nice, if that error would not have so dramatic consequences and Zabbix server could stay alive after that. Handled error Un-handled error |
Comments |
Comment by Aleksandrs Saveljevs [ 2013 Oct 24 ] |
It seems to me that this is a library problem, not a Zabbix problem, because "relocation error" is a problem reported by the linker. Zabbix server cannot (and probably should not) do anything about it. |
Comment by Arli [ 2013 Oct 24 ] |
Yes, it is a library problem. I'm just suggesting that maybe entire Zabbix server should not die when badly configured ODBC driver throws an exception. |
Comment by richlv [ 2013 Oct 24 ] |
this one seems to be more than a simple misconfiguration, though - there's a library issue. not sure zabbix even can ignore that... |
Comment by Aleksandrs Saveljevs [ 2013 Oct 25 ] |
This is not an exception thrown by ODBC, it is an error signalled by operating system's linker. So I do not think Zabbix should be doing anything about it. |
Comment by Glebs Ivanovskis (Inactive) [ 2016 Jul 01 ] |
UnixODBC is very clever, it loads ODBC drivers at runtime. Drivers must be linked against DB client libraries, so they must be loaded at runtime too as a secondary dependency. Problems start when application using unixODBC is linked against DB client library directly (like Zabbix), especially when ODBC driver and the application request different (potentially incompatible) versions of the same library. Hence crashes and symbol lookup problems. |