Nagios Monitoring Script-Get Local Databases

by Andy Grogan on January 21, 2012

in Exchange 2010 Nagios

Script Description

Powershell based NSClient++ monitoring script for use with Nagios Core.
This script performs the following functions:

  • Retrieves the Databases that are running on the monitored server
  • Checks to see if they are mounted
  • If no databases are resident on the server (in DAG configurations) the script returns the following information string to the Nagios interface:

    ”OK: No databases are active on this host”

If any database is dismounted the script will return the following exit code:

2: CRITICAL

If all Databases are mounted the script will return an exit code of:

0: OK

NagiosCore031

Download

[ GetExchangeLocalDBs.ps1 – 1 KB ]

Usage

Please refer to the following article(s):

Social

Previous post:

Next post: