Home Directory

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

Directory

robinp

Reviews(1)
byrobinp, August 10, 2013
1 of 1 people found this review helpful
There appears to be a syntax error (or at least when executed on my system Server 2008 R2 Exch 2010)

When running on my exchange server, Mounted and Dismounted databases report as OK.

If you change:
if(($state.status -match "Mounted") -or ($state.status -match "Healthy")){
to:
if(($state.status -match '^Mounted') -or ($state.status -match '^Healthy')){

and

if(($ContentIndexState.status -match "Healthy") -or ($ContentIndexState.status -match "Mounted")){
to:
if(($ContentIndexState.status -match '^Healthy') -or ($ContentIndexState.status -match '^Mounted')){

It then works properly for me.

Other than that great script. Thanks.
Owner's reply

Thanks for that! I'll update the uploaded script with your correction. Cheers.