Home Directory Plugins Databases SQLServer Check MSSQL DataBases, Jobs, Log Files, Time2Connect

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Check MSSQL DataBases, Jobs, Log Files, Time2Connect

Current Version
1.1.2
Last Release Date
2018-12-05
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Owner
License
GPL
Hits
10692
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check MSSQL DataBases, Jobs, Log Files, Time2Connect
Script for nagios to check MSSQL DataBases, Connection Time, Jobs, TempDB Size, Log Size.
The script get all sql instances in the server, and return status for eache instance
You can use check_mssql_config.ini to exclude DB or instance to check, read check_mssql_config.ini help.
## Description:
Script for nagios to check SQL DataBases, Connection Time, Jobs, TempDB Size, Log Size.
The script get all sql instances in the server, and return status for eache instance
You can use check_mssql_config.ini to exclude DB or instance to check, read check_mssql_config.ini help.

## Auther:
Yossi Bitton yosbit@gmail.com
Date: November 2018
Version 1.1.2

## PARAMETER DBStatus
Get the database status, return critical if one DB not in normal state.

## PARAMETER ConnectionTime
Get the time to connect to DB, include performance data.

## PARAMETER Jobs
Get the status off all jobs, the script check only Enabled and scheduled jobs.

## PARAMETER TempDBSize
Get the size of temp DB.
see values of warning and critical in check_mssql_config.ini config. needs dbowner permissions for user Service Account.

## PARAMETER LogSize
Get the size of Log file for eache DB.
see values of warning and critical in check_mssql_config.ini config. needs dbowner permissions for user Service Account.

## EXAMPLE
./check_nrpe -H -c check_mssql -a 'DBStatus'
./check_nrpe -H -c check_mssql -a 'ConnectionTime'
./check_nrpe -H -c check_mssql -a 'Jobs'
./check_nrpe -H -c check_mssql -a 'TempDBSize'
./check_nrpe -H -c check_mssql -a 'LogSize'

for Nagios NRPE edit NSC.ini or nsclient.ini and add the following line under section:
[Wrapped Scripts]
check_mssql=check_mssql.ps1 $ARG1$
[Script Wrappings]
ps1 = cmd /c echo scripts%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -ExecutionPolicy Bypass -command -
Reviews (1)
The script work but in Nagios while 1 database is stopped wont stay RED. Continue Green
Owner's reply

fixed in version 1.1.2