January 21, 2012

Nagios Monitoring Script-Get Local Databases

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:


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

0: OK



[ GetExchangeLocalDBs.ps1 – 1 KB ]


Please refer to the following article(s):

Monitoring, Powershell 0 Replies to “Nagios Monitoring Script-Get Local Databases”