Skip to content

Commit

Permalink
fing compatibility update. fix for #90
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Jun 25, 2017
1 parent 30d3032 commit 72ed157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Smokeping/probes/FPing.pm
Expand Up @@ -67,8 +67,8 @@ sub new($$$)
my $binary = join(" ", $self->binary);
my $testhost = $self->testhost;
my $return = `$binary -C 1 $testhost 2>&1`;
$self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S\s/);
$self->{enable}{O} = (`$binary -h 2>&1` =~ /\s-O\s/);
$self->{enable}{S} = (`$binary -h 2>&1` =~ /\s-S[,\s]/);
$self->{enable}{O} = (`$binary -h 2>&1` =~ /\s-O[,\s]/);
croak "ERROR: fping ('$binary -C 1 $testhost') could not be run: $return"
if $return =~ m/not found/;
croak "ERROR: FPing must be installed setuid root or it will not work\n"
Expand Down

0 comments on commit 72ed157

Please sign in to comment.