Hi,
I have run MSSQL Database and Server monitoring by using Monitoring wizard. The Database can be monitored without a problem but for MSSQL server it show status "Critical with "10.4.14.87\MSSQLSERVER:1433" in Status Information.
I have tested run check_mssql_server.py at /usr/local/nagios/libexec and it shows error below.
[root@nagiossrv libexec]# ./check_mssql_server.py -H '10.4.14.87' -U 'nagios' -P 'Tcc@nagios' -I 'MSSQLSERVER'
10.4.14.87\MSSQLSERVER
CRITICAL:Unable to access SQL Server
Note: I have already installed the prerequisites for the MSSQL wizards and plugins as described in document (Nagios XI – Installing MSSQL Wizard Prereqs).
Any suggestion on this issue.
Regards,
Surachai C.
MSSQL Server monitoring problem
Re: MSSQL Server monitoring problem
Surachai,
There was a bug in the plugin. You can either redownload and reinstall the wizard or delete the check_mssql_server.py plugin in your Nagios XI /usr/local/nagios/libexec directory and replace it with the plugin attached to this post:
There was a bug in the plugin. You can either redownload and reinstall the wizard or delete the check_mssql_server.py plugin in your Nagios XI /usr/local/nagios/libexec directory and replace it with the plugin attached to this post:
You do not have the required permissions to view the files attached to this post.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
surachai.ch
- Posts: 43
- Joined: Tue Mar 27, 2012 9:58 pm
Re: MSSQL Server monitoring problem
Hi,
It works now. Thank you for your suggestion.
Regards,
Surachai C.
It works now. Thank you for your suggestion.
Regards,
Surachai C.
Re: MSSQL Server monitoring problem
Glad I searched for this, Was doing my head in couldn't figure out what I'd done wrong.
Is/Will MSSQL 2012 be supported by the plugin?
Is/Will MSSQL 2012 be supported by the plugin?
-
gm_rajkumar
- Posts: 187
- Joined: Tue Feb 28, 2012 7:08 am
- Location: CA, USA
Re: MSSQL Server monitoring problem
I have tried to remove the wizard, plugins but still im getting the message.
I have checked with ./check_mssql_server.py -H <IP> -U Username -P Password ... its not working fine. Im getting this CRITICAL:Unable to Connect SQL Server message . please check let me know where is the exact issue on this.
Regards,
Raj.
I have checked with ./check_mssql_server.py -H <IP> -U Username -P Password ... its not working fine. Im getting this CRITICAL:Unable to Connect SQL Server message . please check let me know where is the exact issue on this.
Regards,
Raj.
Last edited by gm_rajkumar on Fri May 25, 2012 1:57 am, edited 2 times in total.
-
gm_rajkumar
- Posts: 187
- Joined: Tue Feb 28, 2012 7:08 am
- Location: CA, USA
Re: MSSQL Server monitoring problem
i tried to check_mssql_database.py -H hostname -U user -P password -T table -p port, it shows connected. please let me know is it related to plugin issue (check_mssql_server.py) or command line issue? I have updated the command line output for your reference. I have tried with mssql_database.py plugin i can able to connect the SQL server and Database. So there is no issue on the user/password.
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.
Thanks!
Regards,
Raj.
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.
Thanks!
Regards,
Raj.
Last edited by gm_rajkumar on Fri May 25, 2012 1:59 am, edited 1 time in total.
Re: MSSQL Server monitoring problem
Could you rephrase that? I don't think I quite understand what the issue is.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: MSSQL Server monitoring problem
Also, this is indeed tested and working with 2012.
Nicholas Scott
Former Nagios employee
Former Nagios employee