aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/cacti/files/patch-scripts-ping.pl
blob: 394c2526768a1d8742b5c315e96cae3c4ab12c76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ./scripts/ping.pl.orig	2011-10-26 09:31:56.000000000 -0400
+++ ./scripts/ping.pl	2011-10-26 09:32:02.000000000 -0400
@@ -6,7 +6,7 @@
 
 # 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)/;