+ Fix echange2010 checks
This commit is contained in:
parent
859b630c0e
commit
95dcc5bfaa
|
@ -224,8 +224,8 @@ sub check {
|
||||||
# Check mounted
|
# Check mounted
|
||||||
if ($mounted =~ /False/i) {
|
if ($mounted =~ /False/i) {
|
||||||
$self->{output}->output_add(long_msg => sprintf(" not mounted\n Skip mapi/mailflow test"));
|
$self->{output}->output_add(long_msg => sprintf(" not mounted\n Skip mapi/mailflow test"));
|
||||||
$self->{output}->output_add(short_msg => 'CRITICAL',
|
$self->{output}->output_add(severity => 'CRITICAL',
|
||||||
long_msg => sprintf("Database '%s' server '%s' is not mounted", $database, $server));
|
short_msg => sprintf("Database '%s' server '%s' is not mounted", $database, $server));
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
$self->{output}->output_add(long_msg => sprintf(" mounted"));
|
$self->{output}->output_add(long_msg => sprintf(" mounted"));
|
||||||
|
|
|
@ -48,9 +48,6 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us"
|
||||||
Write-Host $Error[0].Exception
|
Write-Host $Error[0].Exception
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Write-Host "Snap-In no present or not registered"
|
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Snap-In no present or not registered"
|
Write-Host "Snap-In no present or not registered"
|
||||||
|
|
Loading…
Reference in New Issue