14 lines
515 B
PowerShell
14 lines
515 B
PowerShell
|
|
##########################################
|
||
|
|
# Author: Marius Gielnik #
|
||
|
|
# E-Mail: marius.gielnik@gc-gruppe.de #
|
||
|
|
##########################################
|
||
|
|
|
||
|
|
# Checkmk local check for MS Storage Replication Status #
|
||
|
|
|
||
|
|
$replicationStatus = (Get-SRGroup).ReplicationStatus
|
||
|
|
|
||
|
|
if ($replicationStatus -match "ContinuouslyReplicating") {
|
||
|
|
Write-Output "0 StorageReplicationStatus - OK: Continuously Replicating"
|
||
|
|
} else {
|
||
|
|
Write-Output "2 StorageReplicationStatus - CRITICAL: Sporadically Replicating"
|
||
|
|
}
|