summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-09-21 20:33:25 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-09-21 20:33:25 +0000
commit9d635f0a554773de35a2a8fee4da8de1756d4209 (patch)
tree1402054622be1f7d6f10580169b74f51057e4f24 /etc
parent4c9f3cf593f97551b7ed33baf8484f95697451de (diff)
downloadpfsense-9d635f0a554773de35a2a8fee4da8de1756d4209.zip
pfsense-9d635f0a554773de35a2a8fee4da8de1756d4209.tar.gz
Set full path to ping
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 18daaa1..1bfe23d 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -2769,6 +2769,7 @@ function enable_rrd_graphing() {
$top = "/usr/bin/top";
$spamd_gather = "/usr/local/bin/spamd_gather_stats.php";
$ifconfig = "/sbin/ifconfig";
+ $pingcmd = "/sbin/ping";
$rrdtrafficinterval = 60;
$rrdqualityinterval = 60;
@@ -2967,7 +2968,7 @@ function enable_rrd_graphing() {
$rrdupdatesh .= " packetloss_{$ifname}=100\n";
$rrdupdatesh .= " roundtrip_{$ifname}=0\n";
$rrdupdatesh .= " local out_{$ifname}\n";
- $rrdupdatesh .= " out_{$ifname}=`ping -c $numpings -q $monitorip`\n";
+ $rrdupdatesh .= " out_{$ifname}=`$ping -c $numpings -q $monitorip`\n";
$rrdupdatesh .= " if [ $? -eq 0 ]; then\n";
$rrdupdatesh .= " packetloss_{$ifname}=`echo \$out_{$ifname} | cut -f18 -d' ' | cut -c -1`\n";
$rrdupdatesh .= " roundtrip_{$ifname}=`echo \$out_{$ifname} | cut -f24 -d' ' | cut -f2 -d'/'`\n";
OpenPOWER on IntegriCloud