Hi,
I have a problem with monitoring MSSQL database using Zabbix agent 2. Our ZABBIX is on version 6.4.13, the server is running Zabbix agent 2 (6.4.13). Our SQL (Microsoft SQL Server 2022) database run on Windows Server 2022 DC and is managed by an external company, to which I have submitted a request to create a monitoring account according to the instructions (https://www.zabbix.com/cz/integrations/mssql)
View Server State and View Any Definition permissions should be granted to the user. Grant this user read permissions to the sysjobschedules, sysjobhistory, and sysjobs tables.
For example, using T-SQL commands:
GRANT SELECT ON OBJECT::msdb.dbo.sysjobs TO zbx_monitor;
GRANT SELECT ON OBJECT::msdb.dbo.sysjobservers TO zbx_monitor;
GRANT SELECT ON OBJECT::msdb.dbo.sysjobactivity TO zbx_monitor;
GRANT EXECUTE ON OBJECT::msdb.dbo.agent_datetime TO zbx_monitor;
After they created the zbx_monitor account I set everything up and zabbix was able to find all the databases, create graphs for them, but unfortunately it still doesn't read any data.

I found the following errors in the latest data and reported to our external contractor that it was a permissions issue.






The contractor modified the zbx_monitor account settings and added permissions for msdb, but unfortunately the situation is still the same and no data is being retrieved.

As a next step they tried to change the default schema for one DB from dbo to dba, but still no data in graphs.

Therefore I would like to ask for advice here. Thank you very much for any suggestions
LZ.
I have a problem with monitoring MSSQL database using Zabbix agent 2. Our ZABBIX is on version 6.4.13, the server is running Zabbix agent 2 (6.4.13). Our SQL (Microsoft SQL Server 2022) database run on Windows Server 2022 DC and is managed by an external company, to which I have submitted a request to create a monitoring account according to the instructions (https://www.zabbix.com/cz/integrations/mssql)
View Server State and View Any Definition permissions should be granted to the user. Grant this user read permissions to the sysjobschedules, sysjobhistory, and sysjobs tables.
For example, using T-SQL commands:
GRANT SELECT ON OBJECT::msdb.dbo.sysjobs TO zbx_monitor;
GRANT SELECT ON OBJECT::msdb.dbo.sysjobservers TO zbx_monitor;
GRANT SELECT ON OBJECT::msdb.dbo.sysjobactivity TO zbx_monitor;
GRANT EXECUTE ON OBJECT::msdb.dbo.agent_datetime TO zbx_monitor;
After they created the zbx_monitor account I set everything up and zabbix was able to find all the databases, create graphs for them, but unfortunately it still doesn't read any data.
I found the following errors in the latest data and reported to our external contractor that it was a permissions issue.
The contractor modified the zbx_monitor account settings and added permissions for msdb, but unfortunately the situation is still the same and no data is being retrieved.
As a next step they tried to change the default schema for one DB from dbo to dba, but still no data in graphs.
Therefore I would like to ask for advice here. Thank you very much for any suggestions
LZ.

Comment