Ad Widget

Collapse

zabbix proxy ODBC freetds MSSQLServer-Adaptive Server is unavailable or does not exis

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dde.silva
    Junior Member
    • Feb 2023
    • 2

    #1

    zabbix proxy ODBC freetds MSSQLServer-Adaptive Server is unavailable or does not exis

    I have a zabbix proxy dedicated to run queries on mssql server.

    In the proxy (vm rocky linux) I installed unixODBC and freetds.

    However, the item created on the same server of zabbix-proxy to execute the query is showing this error:
    Cannot connect to ODBC DSN: [SQL_ERROR]:[08S01][20009][[unixODBC][FreeTDS][SQL Server]Unable to connect: Adaptive Server is unavailable or does not exist]|[08S01][20009][[unixODBC ][FreeTDS][SQL Server]Unable to connect: Adaptive Server is unavailable or does not exist]|[08001][0][[unixODBC][FreeTDS][SQL Server]Unable to connect to data source]


    When connecting to the database through the server using isql the connection is successful and its possible to run queries:
    >>>​
    isql ABC user password
    +---------------------------------------+
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    +---------------------------------------+

    When I run zabbix_get is showing this msg:
    ZBX_NOTSUPPORTED: Unsupported item key.


    >> /etc/odbcinst.ini
    [FreeTDS]
    Description = Free Sybase & MS SQL Driver
    Driver = /usr/lib64/libtdsodbc.so.0
    Trace = Yes
    TraceFile = /tmp/freetds.log


    >> /etc/odbc.ini
    [ABC]
    Driver = FreeTDS
    Description = Database Monitor ABC
    Server = 172.xx.xx.xx
    Port = 1433
    TDS_Version = 8.0
    Database = ABC​


    >> Item zabbix
    Click image for larger version

Name:	image.png
Views:	1459
Size:	31.6 KB
ID:	459081



    There is no error record in the server logs.

    Zabbix Server: 6.0 on docker

    Grateful if you can help me to solve the problem.​
  • danterpaniagua
    Junior Member
    • Jan 2024
    • 1

    #2
    Hello, i have the same problem. You can solve it?

    Comment

    Working...