From 61ad9a35029dda289af79e6e876e0770baf69c79 Mon Sep 17 00:00:00 2001 From: Yannick Charton Date: Wed, 5 Dec 2018 22:58:19 +0100 Subject: [PATCH] Fix issue #35 --- lib/SnmpUtils.pm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SnmpUtils.pm.in b/lib/SnmpUtils.pm.in index 89bd336..ebdae1b 100644 --- a/lib/SnmpUtils.pm.in +++ b/lib/SnmpUtils.pm.in @@ -740,7 +740,7 @@ sub ExecuteCommand { # execute the unix command open(UNIX,"$Command 2>&1|") or throw_error_common(code=>$?>>8, message=>"Failed to execute \"$Command\", $!"); while () { - $_ =~ s/^\.*([0-9.]*) "?(.*)/\1 \2/g; + $_ =~ s/^\.*([0-9.]*) "?(.*)/$1 $2/g; $_ =~ s/"$//g; $_ =~ s/\|/ /g; # remove pipes which could produce problems (ex: with nagios performance data separator) $_ =~ s/\n$//g; # remove ending return carriers