-
Type:
Change Request
-
Resolution: Duplicate
-
Priority:
Major
-
None
-
Affects Version/s: 1.8.8
-
Component/s: Frontend (F), Server (S)
When the connection between zabbix server and a remote host is a bit slow, database monitor item is not working, because the SQL_LOGIN_TIMEOUT used to connect is fixed in 5 (five) seconds. Shouldn't be useful for the login timeout be some kind of parameter to configure it without recompiliing?
The change I made to make it work was in ./src/libs/zbxdbhigh/odbc.c the SQL_LOGIN_TIMEOUT (I fixed in 15 and recompile to get it working in my installation).
SQLSetConnectAttr(pdbh->hdbc, (SQLINTEGER)SQL_LOGIN_TIMEOUT, (SQLPOINTER)15, (SQLINTEGER)0);
There are also two more odbc parameters, SQL_ATTR_QUERY_TIMEOUT, SQL_ATTR_CONNECTION_TIMEOUT but in my case I didn't need to change them.
Zabbix forum thred reference
http://www.zabbix.com/forum/showthread.php?t=24029
- duplicates
-
ZBX-6797 Database monitor does not use Timeout option
-
- Closed
-