diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-05-25 07:35:59 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-05-25 07:35:59 +0200 |
commit | b2d00d913c460b98590724cebe53dd21ea4a4c43 (patch) | |
tree | 58e37fb47f242be0614ed8d9f3e6d744b2b40202 /etc | |
parent | 92bb7a4174bcc89366cb45f192bfbda4f3fe3273 (diff) | |
download | pfsense-b2d00d913c460b98590724cebe53dd21ea4a4c43.zip pfsense-b2d00d913c460b98590724cebe53dd21ea4a4c43.tar.gz |
Unset the correct variables
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/rrd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc index 97d5a60..e838841 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -306,7 +306,7 @@ function enable_rrd_graphing() { $rrdupdatesh .= "# polling traffic for interface $ifname $realif IPv4/IPv6 counters \n"; $rrdupdatesh .= "TMPFILE=`mktemp -q /tmp/STATS_{$realif}.XXXXXX` \n"; $rrdupdatesh .= "$pfctl -vvsI -i {$realif} > \$TMPFILE \n"; - $rrdupdatesh .= "unset BYTES \n"; + $rrdupdatesh .= "unset BYTES4P BYTES4B BYTES6P BYTES6B \n"; $rrdupdatesh .= "BYTES4P=`cat \$TMPFILE | awk '/In4\/Pass|Out4\/Pass/ {printf \$6 \":\"}'`\n"; $rrdupdatesh .= "BYTES4B=`cat \$TMPFILE | awk '/In4\/Block|Out4\/Block/ {printf \$6 \":\"}'`\n"; $rrdupdatesh .= "BYTES6P=`cat \$TMPFILE | awk '/In6\/Pass|Out6\/Pass/ {printf \$6 \":\"}'`\n"; @@ -341,7 +341,7 @@ function enable_rrd_graphing() { $rrdupdatesh .= "# polling packets for interface $ifname $realif \n"; $rrdupdatesh .= "TMPFILE=`mktemp -q /tmp/STATS_{$realif}.XXXXXX` \n"; $rrdupdatesh .= "$pfctl -vvsI -i {$realif} > \$TMPFILE \n"; - $rrdupdatesh .= "unset PACKETS \n"; + $rrdupdatesh .= "unset PACKETS4P PACKETS4B PACKETS6P PACKETS6B \n"; $rrdupdatesh .= "PACKETS4P=`cat \$TMPFILE | awk '/In4\/Pass|Out4\/Pass/ {printf \$4 \":\"}'`\n"; $rrdupdatesh .= "PACKETS4B=`cat \$TMPFILE | awk '/In4\/Block|Out4\/Block/ {printf \$4 \":\"}'`\n"; $rrdupdatesh .= "PACKETS6P=`cat \$TMPFILE | awk '/In6\/Pass|Out6\/Pass/ {printf \$4 \":\"}'`\n"; |