Hello friends,
I'm trying to get Zabbix to monitor the results of a SQL query via the Database Monitor item type / db.odbc.select. My item keeps showing "Not Supported", and even with Debug level set to 5, the only error data i have to work with is:
We're using Zabbix 3.0, and i followed the instructions in the documentation in terms of ODBC configuration. I am using Ubuntu 16.04, which had the unixodbc and unixodbc-dev packages in the repository, but not the MySQL connector driver. For that, i got the .tar.gz from the MySQL website.
I am able to run my query successfully, as the zabbix user, with the isql utility, so i feel like my /etc/odbc.ini and /etc/odbcinst.ini files are in good shape. The ini files can be read by the zabbix user, as can the library. The DSN in the item configuration matches the DSN in my odbc.ini, and the driver in odbc.ini matches the setting in odbcinst.ini. The sql starts with "select", and returns 1 value, in 1 row and 1 column. I've tried it with and without a final semi-colon.
I've restarted the server to no effect, deleted / re-added the item with no effect.
Has anyone seen this before? I feel somewhat bewildered by the fact that there is no further text in the error - the documentation indicates that i'll get further information on the nature of the error after that [SQL_ERROR]: bit, but that's all i get in my log.
I'm trying to get Zabbix to monitor the results of a SQL query via the Database Monitor item type / db.odbc.select. My item keeps showing "Not Supported", and even with Debug level set to 5, the only error data i have to work with is:
Code:
15489:20180419:221638.703 Item [<hostname_redacted>:db.odbc.select['rowcomp1',<dsn_redacted>]] error: Cannot connect to ODBC DSN:[SQL_ERROR]:
I am able to run my query successfully, as the zabbix user, with the isql utility, so i feel like my /etc/odbc.ini and /etc/odbcinst.ini files are in good shape. The ini files can be read by the zabbix user, as can the library. The DSN in the item configuration matches the DSN in my odbc.ini, and the driver in odbc.ini matches the setting in odbcinst.ini. The sql starts with "select", and returns 1 value, in 1 row and 1 column. I've tried it with and without a final semi-colon.
I've restarted the server to no effect, deleted / re-added the item with no effect.
Has anyone seen this before? I feel somewhat bewildered by the fact that there is no further text in the error - the documentation indicates that i'll get further information on the nature of the error after that [SQL_ERROR]: bit, but that's all i get in my log.
Comment