Hi
i have a fresh installation of Zabbix 7 on a Ubuntu 24 and tried to monitor several SQL Servers (Domain Members and also standalone systems) but it always failed with the same error message:
With ODBC:
For the setup i have used the manual of the zabbix site: https://www.zabbix.com/integrations/mssql
SQL Server(s) where i have test it: MS SQL Server 2016 - 2022 (Standard + Enterprise Editions), SQL Express 2019 on Windows Server 2016 - 2022
Greetings
Joerg
i have a fresh installation of Zabbix 7 on a Ubuntu 24 and tried to monitor several SQL Servers (Domain Members and also standalone systems) but it always failed with the same error message:
Code:
24820:20240709:072600.605 item "myServerName.mydomain:mssql.cache_hit_ratio" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.cache_object_counts" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.cache_objects_in_use" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.cache_pages" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.data_files_size" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.log_files_size" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.log_files_used_size" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.transactions_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.errors_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.info_errors_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.kill_connection_errors_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.offline_errors_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.user_errors_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.forwarded_records_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.full_scans_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.index_searches_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.page_splits_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.table_lock_escalations.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.workfiles_created_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.worktables_created_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.worktables_from_cache_ratio" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.granted_workspace_memory" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.maximum_workspace_memory" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.memory_grants_outstanding" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.memory_grants_pending" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.target_server_memory" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.total_server_memory" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.logins_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.logouts_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.processes_blocked" became not supported: Unsupported item key. 24820:20240709:072600.605 item "myServerName.mydomain:mssql.user_connections" became not supported: Unsupported item key. 24820:20240709:072600.611 item "myServerName.mydomain:mssql.batch_requests_sec.rate" became not supported: Unsupported item key. 24820:20240709:072600.611 item "myServerName.mydomain:mssql.readahead_pages_sec.rate" became not supported: Unsupported item key. 24820:20240709:072603.979 error reason for "myServerName.mydomain:mssql.average_latch_wait_time" changed: Cannot evaluate function: item "/myServerName.mydomain/mssql.average_latch_wait_time_raw" is not supported at "last(//mssql.average_latch_wait_time_raw) - last(//mssql.average_latch_wait_time_raw,#2)) / (last(//mssql.average_latch_wait_time_base) - last(//mssql.average_latch_wait_time_base,#2) + (last(//mssql.average_latch_wait_time_base) - last(//mssql.average_latch_wait_time_base,#2)=0))". 24820:20240709:072603.979 error reason for "myServerName.mydomain:mssql.average_wait_time" changed: Cannot evaluate function: item "/myServerName.mydomain/mssql.average_wait_time_raw" is not supported at "last(//mssql.average_wait_time_raw) - last(//mssql.average_wait_time_raw,#2)) / (last(//mssql.average_wait_time_base) - last(//mssql.average_wait_time_base,#2) + (last(//mssql.average_wait_time_base) - last(//mssql.average_wait_time_base,#2)=0))". 24820:20240709:072603.979 error reason for "myServerName.mydomain:mssql.percent_of_adhoc_queries" changed: Cannot evaluate function: item "/myServerName.mydomain/mssql.sql_compilations_sec.rate" is not supported at "last(//mssql.sql_compilations_sec.rate) * 100 / (last(//mssql.batch_requests_sec.rate) + (last(//mssql.batch_requests_sec.rate)=0))". 24820:20240709:072603.979 error reason for "myServerName.mydomain:mssql.percent_recompilations_to_compilations" changed: Cannot evaluate function: item "/myServerName.mydomain/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))". 24820:20240709:072603.979 error reason for "myServerName.mydomain:mssql.scan_to_search" changed: Cannot evaluate function: item "/myServerName.mydomain/mssql.full_scans_sec.rate" is not supported at "last(//mssql.full_scans_sec.rate) / (last(//mssql.index_searches_sec.rate) + (last(//mssql.index_searches_sec.rate)=0))".
Code:
24820:20240708:151200.307 item "myServerName.mydomain:mssql.page_lookups_sec.rate" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.page_writes_sec.rate" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.readahead_pages_sec.rate" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.target_pages" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.cache_hit_ratio" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.cache_object_counts" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.cache_objects_in_use" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.cache_pages" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified] 24820:20240708:151200.307 item "myServerName.mydomain:mssql.data_files_size" became not supported: Cannot connect to ODBC DSN: [SQL_ERROR]:[IM002][0][[unixODBC][Driver Manager]Data source name not found and no default driver specified]
SQL Server(s) where i have test it: MS SQL Server 2016 - 2022 (Standard + Enterprise Editions), SQL Express 2019 on Windows Server 2016 - 2022
- The Agent Communication is working fine, the standard OS related information like CPU Load, Disk usage ... working without of any problem.
- Connection by telnet from the zabbix host is working (telnet servname 1433), so there is no connection issue
- Firewall Rules on the SQL Server is configured (Any Port, Any Protocoll from & to zabbix server = allowed)
Greetings
Joerg
Comment