freebsd-ports/net-mgmt/cacti/files/patch-scripts-ping.pl
Sergey Matveychuk 61f3adc3dc - Add plugin support back (off by default). [1]
- Add PHP sockets module in depends for ping works. [2]

PR:		ports/110649 [1], ports/110500 [2]
Submitted by:	Timur I. Bakeyev <timur@gnu.org> [1], edwin [2]
2007-03-29 09:52:15 +00:00

10 lines
351 B
Perl

--- cacti-0.8.6j/scripts/ping.pl.orig Sat Apr 15 22:26:44 2006
+++ cacti-0.8.6j/scripts/ping.pl Sat Apr 15 22:27:16 2006
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-open(PROCESS, "ping -c 1 $ARGV[0] | grep icmp_seq |");
+open(PROCESS, "/sbin/ping -c 1 $ARGV[0] | grep icmp_seq |");
$ping = <PROCESS>;
close(PROCESS);
$ping =~ m/(.*time=)(.*) (ms|usec)/;