Module: check_mk
Branch: master
Commit: b7329dbd6c6010b7cf3085d878e2d9e2629922da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b7329dbd6c6010…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Mon Feb 23 09:20:38 2015 +0100
Publish the plugin for the Exchange Mailbox Server checks
---
agents/windows/plugins/msexch_dag.ps1 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/agents/windows/plugins/msexch_dag.ps1
b/agents/windows/plugins/msexch_dag.ps1
new file mode 100644
index 0000000..31823e8
--- /dev/null
+++ b/agents/windows/plugins/msexch_dag.ps1
@@ -0,0 +1,11 @@
+# Load Exchange Management Powershell Plugin
+try{ (Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction:Stop) }
+
+# exit without any output if this fails
+catch{exit}
+
+write-host "<<<msexch_dag:sep(58)>>>"
+Get-MailboxDatabaseCopyStatus | Format-List
+
+write-host "<<<msexch_replhealth:sep(58)>>>"
+Test-ReplicationHealth | Format-List