Hi.
I have one main zabbix server that monitors several servers. If I connect directly to the agent, MS SQL Server monitoring returns correct data. If I connect to the agent via a proxy, I get information that the TC port is available but I cannot access the database.
My odbcinst.ini file:
[MSSQL17]
Description = MSSQL Driver
Driver = / opt / microsoft / msodbcsql17 / lib64 / libmsodbcsql-17.6.so.1.1
UsageCount = 1
My odbc.ini file:
[MSSQLDSN]
Description = MS SQL conf file
Driver = MSSQL17
Server = <my server's IP 1>
User = zabbix
Password = zabbix
[MSSQLDSN2]
Description = MS SQL conf file
Driver = MSSQL17
Server = <my server 2's IP>
User = zabbix
Password = zabbix
Host 1 has an MSSQL by ODBC template with macros:
{$ MSSQL.DSN} with the value of MSSQLDSN
{$ MSSQL.INSTANCE} with the value of MSSQL $ MSSQLSERVER
{$ MSSQL.PASSWORD} with zabbix value
{$ MSSQL.USER} with zabbix value
and
Host 2 has an MSSQL by ODBC template with macros:
{$ MSSQL.DSN} with the value of MSSQLDSN2
{$ MSSQL.INSTANCE} with the value of MSSQL $ SQLEXPRESS
{$ MSSQL.PASSWORD} with zabbix value
{$ MSSQL.USER} with zabbix value
Host 1 monitored via proxy returns only TCP status (positive) and host 2 monitored directly without proxy returns all data. Where is the error? both zabbix users have permission to read statistics and have sysadmin role
I have one main zabbix server that monitors several servers. If I connect directly to the agent, MS SQL Server monitoring returns correct data. If I connect to the agent via a proxy, I get information that the TC port is available but I cannot access the database.
My odbcinst.ini file:
[MSSQL17]
Description = MSSQL Driver
Driver = / opt / microsoft / msodbcsql17 / lib64 / libmsodbcsql-17.6.so.1.1
UsageCount = 1
My odbc.ini file:
[MSSQLDSN]
Description = MS SQL conf file
Driver = MSSQL17
Server = <my server's IP 1>
User = zabbix
Password = zabbix
[MSSQLDSN2]
Description = MS SQL conf file
Driver = MSSQL17
Server = <my server 2's IP>
User = zabbix
Password = zabbix
Host 1 has an MSSQL by ODBC template with macros:
{$ MSSQL.DSN} with the value of MSSQLDSN
{$ MSSQL.INSTANCE} with the value of MSSQL $ MSSQLSERVER
{$ MSSQL.PASSWORD} with zabbix value
{$ MSSQL.USER} with zabbix value
and
Host 2 has an MSSQL by ODBC template with macros:
{$ MSSQL.DSN} with the value of MSSQLDSN2
{$ MSSQL.INSTANCE} with the value of MSSQL $ SQLEXPRESS
{$ MSSQL.PASSWORD} with zabbix value
{$ MSSQL.USER} with zabbix value
Host 1 monitored via proxy returns only TCP status (positive) and host 2 monitored directly without proxy returns all data. Where is the error? both zabbix users have permission to read statistics and have sysadmin role
Comment