MSSQL Database in Suspect mode

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gselvakumar
Posts: 96
Joined: Wed Mar 02, 2016 4:52 am

MSSQL Database in Suspect mode

Post by gselvakumar »

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
Thanks & Regards,
Gomathyshankar Selvakumar
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: MSSQL Database in Suspect mode

Post by Box293 »

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?
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

Post by nietonoshana »

Box293 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?
Yes, The Status in database is located in sys.databases

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'
know that a base entered in that State over not which

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' 
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: MSSQL Database in Suspect mode

Post by Box293 »

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?
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

Post by gselvakumar »

sorry for the delay in response
Thanks nietoshana and Box293.The above mentioned query is working. :D
Thanks & Regards,
Gomathyshankar Selvakumar
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: MSSQL Database in Suspect mode

Post by rkennedy »

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

Post by gselvakumar »

Yes .Once again thanks :D
Thanks & Regards,
Gomathyshankar Selvakumar
Locked