From 7affb8c9e227c6b2f87a80fd04116a88a4d0c9bb Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 20 Aug 2015 12:23:38 +0200 Subject: [PATCH] + Fix echange2010 checks --- .../centreon/common/powershell/exchange/2010/databases.pm | 4 ++-- .../centreon/common/powershell/exchange/2010/powershell.pm | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/centreon-plugins/centreon/common/powershell/exchange/2010/databases.pm b/centreon-plugins/centreon/common/powershell/exchange/2010/databases.pm index 054f3c993..5a8fdb011 100644 --- a/centreon-plugins/centreon/common/powershell/exchange/2010/databases.pm +++ b/centreon-plugins/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-plugins/centreon/common/powershell/exchange/2010/powershell.pm b/centreon-plugins/centreon/common/powershell/exchange/2010/powershell.pm index 61a0d3703..9433a061c 100644 --- a/centreon-plugins/centreon/common/powershell/exchange/2010/powershell.pm +++ b/centreon-plugins/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"