From e2baa003620ee1e488a35ed220a1598998624d64 Mon Sep 17 00:00:00 2001 From: Julien Mathis Date: Thu, 18 Oct 2007 10:25:40 +0000 Subject: [PATCH] remove Label name on MS Windows. git-svn-id: http://svn.centreon.com/trunk/plugins@3375 6bcd3966-0018-0410-8128-fd23d134de7e --- centreon-plugins/src/check_centreon_snmp_remote_storage | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/centreon-plugins/src/check_centreon_snmp_remote_storage b/centreon-plugins/src/check_centreon_snmp_remote_storage index ace30f7dc..d1c16a9db 100644 --- a/centreon-plugins/src/check_centreon_snmp_remote_storage +++ b/centreon-plugins/src/check_centreon_snmp_remote_storage @@ -254,6 +254,12 @@ if (!$Size){ } if (($Size =~ /([0-9]+)/) && ($AllocationUnits =~ /([0-9]+)/)){ + + if ($hrStorageDescr =~ /\:/){ + my @tab = split(/\:/, $hrStorageDescr); + $hrStorageDescr = $tab[0] . ":"; + } + if (!$Size){ print "The number of the option -p is not a hard drive\n"; exit $ERRORS{'CRITICAL'};