Hi! I've problems with monitoring my Microsft Sql Server 2019. I'm using zabbix 5.4.2 and the newest MSSQL ODBC (https://git.zabbix.com/projects/ZBX/.../db/mssql_odbc).
Some of elements work well like jobs, version and status detection, database discovering and etc. But the most part of them doesn't work. The main error of element looks like this:
Preprocessing failed for: [{"object_name":"MSSQL$PSSQLSRV:Access Methods","counter_name":"AU cleanup batches/sec","instance...
1. Failed: cannot extract value from json by path "$[?(@.object_name=='PSSQLSRV:Buffer Manager' && @.counter_name=='Page lookups/sec')].cntr_value.first()": no data matches the specified path
1. Failed: cannot extract value from json by path "$[?(@.object_name=='PSSQLSRV:Buffer Manager' && @.counter_name=='Page lookups/sec')].cntr_value.first()": no data matches the specified path
Cannot evaluate function: item "/PSSQLSRV2/mssql.sql_recompilations_sec.rate" is not supported at "last(//mssql.sql_recompilations_sec.rate) * 100 /
(last(//mssql.sql_compilations_sec.rate) + (last(//mssql.sql_compilations_sec.rate)=0))".
(last(//mssql.sql_compilations_sec.rate) + (last(//mssql.sql_compilations_sec.rate)=0))".
here's my odbc.ini:
[MSSQL01]
Driver = ODBC Driver 17 for SQL Server
Server = 10.28.36.15
User = zabbix
Password = *private*
Port = 1433
Database = msdb
Driver = ODBC Driver 17 for SQL Server
Server = 10.28.36.15
User = zabbix
Password = *private*
Port = 1433
Database = msdb
My sql instance name is PSSQLSRV
Microsoft SQL Server ip is 10.28.36.15
Username for connect is zabbix.
here's the example of things that works fine while some of them are not:
It would require to have at least somewhat similar setup to look around and test something...
Comment