summaryrefslogtreecommitdiff
path: root/net-mgmt/cacti88/files/patch-scripts__ping.pl
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/cacti88/files/patch-scripts__ping.pl')
-rw-r--r--net-mgmt/cacti88/files/patch-scripts__ping.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-mgmt/cacti88/files/patch-scripts__ping.pl b/net-mgmt/cacti88/files/patch-scripts__ping.pl
new file mode 100644
index 000000000000..931472cd53b9
--- /dev/null
+++ b/net-mgmt/cacti88/files/patch-scripts__ping.pl
@@ -0,0 +1,11 @@
+--- scripts/ping.pl.orig 2017-06-01 00:09:48 UTC
++++ scripts/ping.pl
+@@ -7,7 +7,7 @@ $host =~ s/:[0-9]{1,5}/$1/gis;
+
+ # old linux version use "icmp_seq"
+ # newer use "icmp_req" instead
+-open(PROCESS, "ping -c 1 $host | grep 'icmp_[s|r]eq' | grep time |");
++open(PROCESS, "/sbin/ping -c 1 $host | grep 'icmp_[s|r]eq' | grep time |");
+ $ping = <PROCESS>;
+ close(PROCESS);
+ $ping =~ m/(.*time=)(.*) (ms|usec)/;