Skip to content

Commit

Permalink
Fix issue #35
Browse files Browse the repository at this point in the history
  • Loading branch information
Tontonitch committed Dec 5, 2018
1 parent a5f8143 commit 61ad9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SnmpUtils.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 (<UNIX>) {
$_ =~ 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
Expand Down

0 comments on commit 61ad9a3

Please sign in to comment.