Hi Everyone,
this is my 1st post and 1st problem I met with Zabbix. I read a lot of posts on this community and some other posts over Internet, but I am stuck now.
I have RedHat server with Zabbix 5.0.2 and I would like to monitor some MSSQL perfs and other useful items.
I installed unixODBC:
[root@XXX ~]# odbcinst -j
unixODBC 2.3.7
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
[root@XXX ~]# odbcinst -q -d -n
[ODBC Driver 17 for SQL Server]
[root@XXX ~]# cat /etc/odbcinst.ini
[ODBC Driver 17 for SQL Server]
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.6.so.1.1
UsageCount=1
[root@XXX ~]# cat /etc/odbc.ini
[XXXPROD01]
Driver = ODBC Driver 17 for SQL Server
Server = aa.bb.cc.dd\\\XXXPROD01,1433
ISQL -v works (from root and also via sudo -H -u zabbix -s /bin/bash -c 'isql -v XXXPROD01 aaaaa bbbbb')
SQLcmd works
In frontend in Configuration/Templates/Template DB MSSQL by ODBC I entered {$MSSQL.DSN} (the same as entry in odbc.ini), {$MSSQL.USER} and {$MSSQL.PASSWORD}.
I am trying to test the most simple item so I mean MSSQL: Service's TCP port state with key -> net.tcp.service[tcp,{HOST.CONN},{$MSSQL.PORT}]
When I am clicking TEST I have to enter Host address (XXXPROD01) and in $MACROS {HOST.CONN} ? I am attaching screenshot with error.
Should I change sthg? Add sthg in configuration? Did I miss sthg ?
Maybe I do not understand sthg.
Thanks in advance for help!
Regards,
Simon
this is my 1st post and 1st problem I met with Zabbix. I read a lot of posts on this community and some other posts over Internet, but I am stuck now.
I have RedHat server with Zabbix 5.0.2 and I would like to monitor some MSSQL perfs and other useful items.
I installed unixODBC:
[root@XXX ~]# odbcinst -j
unixODBC 2.3.7
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
FILE DATA SOURCES..: /etc/ODBCDataSources
USER DATA SOURCES..: /root/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
[root@XXX ~]# odbcinst -q -d -n
[ODBC Driver 17 for SQL Server]
[root@XXX ~]# cat /etc/odbcinst.ini
[ODBC Driver 17 for SQL Server]
Driver=/opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.6.so.1.1
UsageCount=1
[root@XXX ~]# cat /etc/odbc.ini
[XXXPROD01]
Driver = ODBC Driver 17 for SQL Server
Server = aa.bb.cc.dd\\\XXXPROD01,1433
ISQL -v works (from root and also via sudo -H -u zabbix -s /bin/bash -c 'isql -v XXXPROD01 aaaaa bbbbb')
SQLcmd works
In frontend in Configuration/Templates/Template DB MSSQL by ODBC I entered {$MSSQL.DSN} (the same as entry in odbc.ini), {$MSSQL.USER} and {$MSSQL.PASSWORD}.
I am trying to test the most simple item so I mean MSSQL: Service's TCP port state with key -> net.tcp.service[tcp,{HOST.CONN},{$MSSQL.PORT}]
When I am clicking TEST I have to enter Host address (XXXPROD01) and in $MACROS {HOST.CONN} ? I am attaching screenshot with error.
Should I change sthg? Add sthg in configuration? Did I miss sthg ?
Maybe I do not understand sthg.
Thanks in advance for help!
Regards,
Simon

Comment