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);
|
||||
|
||||
$_ = `$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;
|
||||
|
||||
#
|
||||
|
@ -199,4 +199,4 @@ sub print_help () {
|
|||
print "##############################################\n";
|
||||
print_usage();
|
||||
print "\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue