I'm using zabbix 1.8.8 in Ubuntu 10.04. I already compile zabbix server with odbc support and install unixodbc drivers.
Database monitor works for a database hosted in the same server of the zabbix server (localhost), but when trying to use it for a remote mysql instance doesn't work. Of couse I added /etc/odbc.ini entries, and with the command 'isql dsn user pass' test the connectio that works ok.
I activate Debug log level in 4 and this is the log I'm getting in zabbix server
4716:20111115:120641.780 Item [MyRemoteDatabase:db.odbc.select[myremotedatabase_jobs_lasthour]] became not supported: failed connection [[unixODBC][MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (4)] (2003)
4716:20111115:120641.780 In DCadd_nextcheck()
4716:20111115:120641.780 End of DCadd_nextcheck()
4716:20111115:120641.780 query [txnlev:1] [update items set lastclock=1321369600,prevorgvalue='5568398157.0000 00',prevvalue=lastvalue,lastvalue='1212.600000' where itemid=18440;
Another thing I can mention is that the connection between server and remote is a bit slow (it can take up to 10 seconds to connect), but as I say testing with the isql command works ok. Nevetherless I change the 'Timeout' configuration parameter in zabbix_server.conf to 30 to see if this could fix the problem but it didn't work.
Anyone knows what the problem could be or any extra thing I can test? Maybe the database monitor use another timeout value?
Thanks in advance
Database monitor works for a database hosted in the same server of the zabbix server (localhost), but when trying to use it for a remote mysql instance doesn't work. Of couse I added /etc/odbc.ini entries, and with the command 'isql dsn user pass' test the connectio that works ok.
I activate Debug log level in 4 and this is the log I'm getting in zabbix server
4716:20111115:120641.780 Item [MyRemoteDatabase:db.odbc.select[myremotedatabase_jobs_lasthour]] became not supported: failed connection [[unixODBC][MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'XXX.XXX.XXX.XXX' (4)] (2003)
4716:20111115:120641.780 In DCadd_nextcheck()
4716:20111115:120641.780 End of DCadd_nextcheck()
4716:20111115:120641.780 query [txnlev:1] [update items set lastclock=1321369600,prevorgvalue='5568398157.0000 00',prevvalue=lastvalue,lastvalue='1212.600000' where itemid=18440;
Another thing I can mention is that the connection between server and remote is a bit slow (it can take up to 10 seconds to connect), but as I say testing with the isql command works ok. Nevetherless I change the 'Timeout' configuration parameter in zabbix_server.conf to 30 to see if this could fix the problem but it didn't work.
Anyone knows what the problem could be or any extra thing I can test? Maybe the database monitor use another timeout value?
Thanks in advance

Comment