I have a MSSQL Server 2008 and using to monitor this by MSSQL Server wizard. For this i have created a "testuser" in SQL with public access and Read only permission.
when im trying to configure Received " CRITICAL:unable to access SQL server".
In command also, i have tried ./check_mssql_server.py -H 192.168.10.10 -U 'testuser' -P 'test@123' -I 'Share_test' -p 1433 --pageplits --warning 20 critical 30
CRITICAL:unable to access SQL server
Is this related to Privilege issue, what level of previlege should be given to the "testuser" for fetching the information??.
Thanks in advance.
Regards,
Deepak.
Access issue on MSSQL_server.py
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Access issue on MSSQL_server.py
Usually if you are connecting to an instance you would not include the
Code: Select all
-p 1433
-
- Posts: 78
- Joined: Tue Feb 28, 2012 7:21 am
Re: Access issue on MSSQL_server.py
Hi,
Thanks for your update, I gave system admin user privilege to that query after it shows results. Correct me if i am wrong, for this query required any specific privilege. If i gave public it shows CRITICAL:can access server but not query. Pls clarify...
Regards,
Deepak.P
Thanks for your update, I gave system admin user privilege to that query after it shows results. Correct me if i am wrong, for this query required any specific privilege. If i gave public it shows CRITICAL:can access server but not query. Pls clarify...
Regards,
Deepak.P
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Access issue on MSSQL_server.py
User needs server level permissions of "Connect SQL" and "View server state." Also needs database level permissions of "Connect" and "Select".