diff --git a/centreon/common/powershell/exchange/2010/databases.pm b/centreon/common/powershell/exchange/2010/databases.pm index 054f3c993..5a8fdb011 100644 --- a/centreon/common/powershell/exchange/2010/databases.pm +++ b/centreon/common/powershell/exchange/2010/databases.pm @@ -224,8 +224,8 @@ sub check { # Check mounted if ($mounted =~ /False/i) { $self->{output}->output_add(long_msg => sprintf(" not mounted\n Skip mapi/mailflow test")); - $self->{output}->output_add(short_msg => 'CRITICAL', - long_msg => sprintf("Database '%s' server '%s' is not mounted", $database, $server)); + $self->{output}->output_add(severity => 'CRITICAL', + short_msg => sprintf("Database '%s' server '%s' is not mounted", $database, $server)); next; } $self->{output}->output_add(long_msg => sprintf(" mounted")); diff --git a/centreon/common/powershell/exchange/2010/powershell.pm b/centreon/common/powershell/exchange/2010/powershell.pm index 61a0d3703..9433a061c 100644 --- a/centreon/common/powershell/exchange/2010/powershell.pm +++ b/centreon/common/powershell/exchange/2010/powershell.pm @@ -48,9 +48,6 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us" Write-Host $Error[0].Exception exit 1 } - } else { - Write-Host "Snap-In no present or not registered" - exit 1 } } else { Write-Host "Snap-In no present or not registered"