Hello Zabbix fanatics,
I have an issue with configuring MS SQL database monitoring, I have installed the Microsoft odbc driver for sql server from the official Zabbix guide, have my dsn configured and when creating an item in Zabbix I got the error: "SQL Query returned empty result"
I do not have my credentials of the sql account in the odbc.ini but in the macro's {$MSSQL.USER} & {$MSSQL.PASSWORD}, then have the macro's in the username and password field within the item.
The key looks as following: "db.odbc.select[,test] , test is ofcourse the name of the dsn in the odbc.ini.
My odbc.ini looks as following:
Driver = ODBC Driver 17 for SQL Server
Server = tcp:Servername,1433.
I can telnet the server on 1433 from the Zabbix server, and we can see the connection is being made in the mssql server logging.
The query is as following:
USE NAV_TEST
SELECT COUNT (*)
FROM [NAV_TEST].[dbo].[xxx$AC Log]
I hope anyone can help me configuring this. Thank you!
I have an issue with configuring MS SQL database monitoring, I have installed the Microsoft odbc driver for sql server from the official Zabbix guide, have my dsn configured and when creating an item in Zabbix I got the error: "SQL Query returned empty result"
I do not have my credentials of the sql account in the odbc.ini but in the macro's {$MSSQL.USER} & {$MSSQL.PASSWORD}, then have the macro's in the username and password field within the item.
The key looks as following: "db.odbc.select[,test] , test is ofcourse the name of the dsn in the odbc.ini.
My odbc.ini looks as following:
Driver = ODBC Driver 17 for SQL Server
Server = tcp:Servername,1433.
I can telnet the server on 1433 from the Zabbix server, and we can see the connection is being made in the mssql server logging.
The query is as following:
USE NAV_TEST
SELECT COUNT (*)
FROM [NAV_TEST].[dbo].[xxx$AC Log]
I hope anyone can help me configuring this. Thank you!
Comment