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

Directory Tree

Exchange 2013 DAG Health Check

Rating
2 votes
Favoured:
0
Current Version
1.0
Last Release Date
2014-08-30
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
22457
Files:
FileDescription
CheckEX2013DAG.ps1CheckEX2013DAG.ps1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Powershell Script for checking DAG health.
Needs NSClient++ on the Exchange DAG member server that is monitored.
Powershell Script for checking DAG health.
Needs NSClient++ on the Exchange DAG member server that is monitored.

Please copy the script to your server and extend your nsclient.ini like this:
[/settings/external scripts/scripts]
check_ex2013dag=cmd /c echo C:CheckEX2013DAG.ps1; exit($lastexitcode) | powershell.exe -noprofile -nologo -command -
Reviews (2)
It works it just needs to be tweaked.

Copy the powershell script on the target machine in the folder:
C:program files
sclient++scripts

Then in your config ini file add:
[/settings/external scripts/scripts]
check_ex2013dag=cmd /c echo scriptsCheckEX2013DAG.ps1; exit($lastexitcode) | powershell.exe -command -

Then it should work. Keep in mind that in your nagios server give it a higher timeout (I used 60 seconds) because the results will not come back in the default 10.
bytransom324, January 12, 2016
It maybe a rookie error but I can't get it to work.

I keep getting:

(Return code of 127 is out of bounds - plugin may be missing)