Access issue on MSSQL_server.py

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
siriideepak
Posts: 78
Joined: Tue Feb 28, 2012 7:21 am

Access issue on MSSQL_server.py

Post by siriideepak »

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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Access issue on MSSQL_server.py

Post by scottwilkerson »

Usually if you are connecting to an instance you would not include the

Code: Select all

-p 1433
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
siriideepak
Posts: 78
Joined: Tue Feb 28, 2012 7:21 am

Re: Access issue on MSSQL_server.py

Post by siriideepak »

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Access issue on MSSQL_server.py

Post by scottwilkerson »

User needs server level permissions of "Connect SQL" and "View server state." Also needs database level permissions of "Connect" and "Select".
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked