MSSQL database status change monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

MSSQL database status change monitoring

Post by jyoti22 »

Hi Team,
In my current engagement, for MsSQL monitoring, customer wanted to monitor database state changes. Can anyone configured this monitoring in their environment? please share the artifacts and plugin details.
Also I wanted to monitor .ldf and .mdf datafile and logfile growth can anyone please help me on this as well.

check_mysql_health do not have these options

Thanks.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: MSSQL database status change monitoring

Post by mcapra »

jyoti22 wrote:check_mysql_health do not have these options
It is also not a particularly useful plugin for SQL Server in general.

Could you expand on what you mean by "state changes"? By definition, state as it relates to SQL Server can be monitored in the sense of "ONLINE" versus all other states by using the SQL Server Configuration Wizard, specifically the "MSSQL Query" wizard. If the state of the database is anything other than "ONLINE", the plugin should produce a critical as it will not be able to establish a connection. Your query could be something as simple as

Code: Select all

SELECT DB_NAME() AS [Current Database];
if all you wanted to do was make sure that database is in an ONLINE state.

Here's the official documentation for using the SQL Server config wizards:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
https://www.mcapra.com/
kyang

Re: MSSQL database status change monitoring

Post by kyang »

Thanks for the help @mcapra!

jyoti22, please let us know if you have any more questions. Otherwise read through what mcapra suggested.
Locked