Hi team,
We are monitoring MSSQL Database.One of the requirement to monitor if a MSSQL database goes into suspect mode.Can anyone help me with this
MSSQL Database in Suspect mode
-
gselvakumar
- Posts: 96
- Joined: Wed Mar 02, 2016 4:52 am
MSSQL Database in Suspect mode
Thanks & Regards,
Gomathyshankar Selvakumar
Gomathyshankar Selvakumar
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: MSSQL Database in Suspect mode
I can't find anything on the Nagios exchange for this.
How do you detect if a database is in suspect mode? Is there a query you can perform?
How do you detect if a database is in suspect mode? Is there a query you can perform?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
nietonoshana
- Posts: 26
- Joined: Thu Jul 04, 2013 1:05 pm
Re: MSSQL Database in Suspect mode
Yes, The Status in database is located in sys.databasesBox293 wrote:I can't find anything on the Nagios exchange for this.
How do you detect if a database is in suspect mode? Is there a query you can perform?
Can you use Wizard MSSQL Query and put there:
Code: Select all
SELECT count( state_desc) FROM master.sys.databases where state_desc like 'SUSPECT'Or you can add a filter by the name of the base
Code: Select all
SELECT count( state_desc) FROM master.sys.databases where state_desc like 'SUSPECT' and name like 'databasename' - Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: MSSQL Database in Suspect mode
Excellent, those queries can be used with the wizard.
Run the MSSQL Query Wizard.
You will be able to add the query on Step 2 of the wizard.
Does this help?
Run the MSSQL Query Wizard.
You will be able to add the query on Step 2 of the wizard.
Does this help?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
gselvakumar
- Posts: 96
- Joined: Wed Mar 02, 2016 4:52 am
Re: MSSQL Database in Suspect mode
sorry for the delay in response
Thanks nietoshana and Box293.The above mentioned query is working.
Thanks nietoshana and Box293.The above mentioned query is working.
Thanks & Regards,
Gomathyshankar Selvakumar
Gomathyshankar Selvakumar
Re: MSSQL Database in Suspect mode
Awesome! Are we good to mark this one as resolved?
Former Nagios Employee
-
gselvakumar
- Posts: 96
- Joined: Wed Mar 02, 2016 4:52 am
Re: MSSQL Database in Suspect mode
Yes .Once again thanks 
Thanks & Regards,
Gomathyshankar Selvakumar
Gomathyshankar Selvakumar