mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
altered order of options of command ping, because not work with freebsd
git-svn-id: http://svn.centreon.com/trunk/plugins-2.x@4731 6bcd3966-0018-0410-8128-fd23d134de7e
This commit is contained in:
parent
89ed8453aa
commit
64eaea3c09
@ -118,7 +118,7 @@ my $start=time;
|
|||||||
|
|
||||||
$opt_i = 1 if (!defined($opt_i) || !$opt_i);
|
$opt_i = 1 if (!defined($opt_i) || !$opt_i);
|
||||||
|
|
||||||
$_ = `$ping -n -c $NbPing $opt_H -i $opt_i 2>/dev/null`;
|
$_ = `$ping -n -c $NbPing -i $opt_i $opt_H 2>/dev/null`;
|
||||||
my $return = $? / 256;
|
my $return = $? / 256;
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user