Hi there,
I have some difficulties to make the MS SQL monitoring work on my database server.
So as mentioned here : https://git.zabbix.com/projects/ZBX/...odbc/README.md, I have:
- created a SQL user dedicated for that specific purpose
- granted "View Server State" and "View Any Definition" permissions
- installed the ODBC drivers on Zabbix server
- configure the macros {$MSSQL.USER} and {$MSSQL.PASSWORD} in the template
But I'm not able to run those commands when setting up permissions:
I get the following (sorry, my console is in French and it mixes the languages):
As the article is mentioning several links to MS articles, it confuses me because I don't understand if the lines above are supposed to configure the same as mentioned in the "Configure a User to Create and Manage SQL Server Agent Jobs" or if it has to be done in extra.
The user I'm using is member of MS SQL sysadmin role so it should have enough permissions.
Also, the mention "Note! Credentials in the odbc.ini do not work for MSSQL." is confusing too!
I have some difficulties to make the MS SQL monitoring work on my database server.
So as mentioned here : https://git.zabbix.com/projects/ZBX/...odbc/README.md, I have:
- created a SQL user dedicated for that specific purpose
- granted "View Server State" and "View Any Definition" permissions
- installed the ODBC drivers on Zabbix server
- configure the macros {$MSSQL.USER} and {$MSSQL.PASSWORD} in the template
But I'm not able to run those commands when setting up permissions:
Code:
GRANT SELECT ON OBJECT::msdb.dbo.sysjobs TO "Zabbix" GRANT SELECT ON OBJECT::msdb.dbo.sysjobservers TO "Zabbix" GRANT SELECT ON OBJECT::msdb.dbo.sysjobactivity TO "Zabbix" GRANT EXECUTE ON OBJECT::msdb.dbo.agent_datetime TO "Zabbix"
Code:
Msg 15151, Niveau 16, État 1, Ligne 1 Cannot find the user 'Zabbix', because it does not exist or you do not have permission. Msg 15151, Niveau 16, État 1, Ligne 2 Cannot find the user 'Zabbix', because it does not exist or you do not have permission. Msg 15151, Niveau 16, État 1, Ligne 3 Cannot find the user 'Zabbix', because it does not exist or you do not have permission. Msg 15151, Niveau 16, État 1, Ligne 4 Cannot find the user 'Zabbix', because it does not exist or you do not have permission.
The user I'm using is member of MS SQL sysadmin role so it should have enough permissions.
Also, the mention "Note! Credentials in the odbc.ini do not work for MSSQL." is confusing too!
Comment