aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/cacti/files/patch-scripts-ping.pl
blob: f1a257f6497622526106a8d14918047a3f7c9a55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- cacti-0.8.7d/scripts/ping.pl.orig	2009-02-12 05:55:50.000000000 +0300
+++ cacti-0.8.7d/scripts/ping.pl	2009-02-16 17:01:59.000000000 +0300
@@ -4,7 +4,7 @@
 $host = $ARGV[0];
 $host =~ s/tcp:/$1/gis;
 
-open(PROCESS, "ping -c 1 $host | grep icmp_seq | grep time |");
+open(PROCESS, "/sbin/ping -c 1 $host | grep icmp_seq | grep time |");
 $ping = <PROCESS>;
 close(PROCESS);
 $ping =~ m/(.*time=)(.*) (ms|usec)/;