diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-07-08 07:27:01 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-07-08 07:27:01 +0000 |
commit | 1c3acb7687b624f6e2a8ffd8b4fc585edbe070e7 (patch) | |
tree | bc0e6e553cc6a149e4415e260fce1d3e4e94e882 | |
parent | 3e08a4fb4497cb02671455643b1a67f2249c6d83 (diff) | |
download | pfsense-1c3acb7687b624f6e2a8ffd8b4fc585edbe070e7.zip pfsense-1c3acb7687b624f6e2a8ffd8b4fc585edbe070e7.tar.gz |
Remove escape slashes so our quality stats gathering works again.
-rw-r--r-- | etc/inc/pfsense-utils.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 961cb38..40bdd6e 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -3114,14 +3114,16 @@ function enable_rrd_graphing() { $numpings = 5; $monitorip = lookup_gateway_monitor_ip_by_name($config['interfaces'][$ifname]['gateway']); /* the ping test function. We call this on the last line */ + $rrdupdatesh .= "\n"; + $rrdupdatesh .= "# Quality collector for {$ifname}\n"; $rrdupdatesh .= "get_quality_stats_{$ifname} () {\n"; $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"; + $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"; $rrdupdatesh .= " fi\n"; $rrdupdatesh .= " $rrdtool update $rrddbpath$ifname$quality N:\$packetloss_{$ifname}:\$roundtrip_{$ifname}\n"; $rrdupdatesh .= "}\n\n"; |