Check_MSSQL_Server.py plugin not function

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Check_MSSQL_Server.py plugin not function

Post by gm_rajkumar »

I have tried the check_mssql_server.py its not working properly, getting CRITICAL:Unable to access SQL Server message.
I have cross checked with check_mssql and check_mssql_database.py to connect the server, its working fine. please check the plugin or let me know if any changes required..

Regards,
Raj.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_MSSQL_Server.py plugin not function

Post by lmiltchev »

Can you run your check command in a command line and show us the output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Re: Check_MSSQL_Server.py plugin not function

Post by gm_rajkumar »

Please find the below result.

[root@monitoring libexec]# /usr/local/nagios/libexec/check_mssql_server.py -H '172.16.4.12' -U 'sa' -P 'ABC@123$' -I 'MSSQLSERVER'
CRITICAL:Unable to access SQL Server.

--------------------------------------------------------------------------------
[root@monitoring libexec]# /usr/local/nagios/libexec/check_mssql_database.py -H '172.16.4.12' -U 'sa' -P 'ABC@123$' -T 'WSS_Content_80' -p 1433 --datasize -w 80 -c 90
CRITICAL:Size of database is 3135744KB|Size_of_database=3135744KB;;;;
[root@monitoring libexec]#

Let me know if you need further details on this.

Regards,
Raj.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Check_MSSQL_Server.py plugin not function

Post by nscott »

Ah yes, I had found a bug in that, please download this:

http://support.nagios.com/forum/downloa ... hp?id=1579

And use the plugin inside of that one.
Nicholas Scott
Former Nagios employee
gm_rajkumar
Posts: 187
Joined: Tue Feb 28, 2012 7:08 am
Location: CA, USA

Re: Check_MSSQL_Server.py plugin not function

Post by gm_rajkumar »

Hi,

I have removed the old plugin and tried this new one, it returns the same issue.
Could you please check this once.

CRITICAL:Unable to access SQL Server.


Regards,
Raj.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Check_MSSQL_Server.py plugin not function

Post by scottwilkerson »

Locking ticket as it is also being worked via email support
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked