Page 1 of 1

MSSQL Server Monitoring Wizard Configuration

Posted: Thu Jan 03, 2013 1:37 am
by wipro-cloud-services
When i try to monitor DB with MSSQL Server Monitoring Wizard Configuration wizard, Status shows "Warning" and Status Information as "(null)". Please advice on the below queries.

Address - IP address of server ?
Instance - Hostname of server or IP address ?
Username and Password - SQL or Windows authentication credentials ?

Can you please advice.

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Thu Jan 03, 2013 10:46 am
by nscott
Address - Yes, IP address of the server
Instance - If you don't know what this is, leave it blank. This is how the MSSQL hands off to different databases running on the same server. If you call the database something like MSSQLSERVER\TECH_SUPPORT. TECH_SUPPORT would be your instance name.
Username and Password - It must be SQL authentication.

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Fri Jan 04, 2013 12:29 am
by wipro-cloud-services
I have tried, but same error. Updated details below.

Server IP: 10.194.131.193
Hostname: ZEW-V-0AC283C1

And configured details as below:

Address: 10.194.131.193
Instance: LEFT BLANC first time an used ZEW-V-0AC283C1 in second time. Same error.
Port: 1433
Username: ZEW-V-0AC283C1\sa and only sa second time.
Password: Entered password.

Please let me know if anything is missed above.
I have opened up all the ports in the server and also installed "NSCP-0.4.0.183-x64" package

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Fri Jan 04, 2013 11:06 am
by slansing
Is ZEW-V-0AC283C1 your database name or the name of the instance? This is as equally important as the other parts because the checks need to be directed at a specific instance if you are running multiple databases.

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Tue Jan 08, 2013 1:49 am
by wipro-cloud-services
ZEW-V-0AC283C1 is the instance name, Database name can be taken as "TEST"..

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Tue Jan 08, 2013 5:13 pm
by nscott
You're going to have to try running this on the command line and see the error the its giving:

Drop to the command line and run the following commands:

Code: Select all

cd /usr/local/nagios/libexec
./check_mssql_database.py -H 10.194.131.193 -I 'ZEW-V-0AC283C1' -U <username> -P <password> --table=TEST
What does that return?

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Fri Jan 18, 2013 3:50 am
by wipro-cloud-services
Apologies for delay. "CRITICAL:Unable to access SQL Server." returns from command:
./check_mssql_database.py -H 10.194.25.52 -I 'ZUE-V-0AC21934' -U test123 -P test123 --table=TEST

I have started testing with different server, so IP and hostname have changed now. Please let me know.
SQL login test123 has full access to all the DB's.

Please check and advice.

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Sun Jan 27, 2013 12:18 am
by scottwilkerson
I noticed in your post above you labeled as hostname. The -I is not for hostname it is for Instances, and if you aren't using instances you should leave that off.

Try

Code: Select all

./check_mssql_database.py -H 10.194.25.52 -U test123 -P test123 --table=TEST

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Thu Jan 31, 2013 1:43 am
by wipro-cloud-services
Team,
Now we are able to monitor Database. Thank you for the support provided. :)

Re: MSSQL Server Monitoring Wizard Configuration

Posted: Thu Jan 31, 2013 10:35 am
by slansing
Closing thread and marking as resolved, thanks for letting us know!