diff options
author | smos <seth.mos@dds.nl> | 2012-05-21 15:41:56 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-05-21 15:41:56 +0200 |
commit | 2b095a33238169fc1be2a3cbe4586e3216bb07fa (patch) | |
tree | 336bdeb89ef402891e96b75cd8ef8ac58bb80e37 | |
parent | 852171dd3082d2789324f212e9e2a9d074d79896 (diff) | |
download | pfsense-2b095a33238169fc1be2a3cbe4586e3216bb07fa.zip pfsense-2b095a33238169fc1be2a3cbe4586e3216bb07fa.tar.gz |
Correct the rrd update command
-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 a6b4dc0..a427feb 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -561,8 +561,8 @@ function enable_rrd_graphing() { $rrdupdatesh .= "\n"; $rrdupdatesh .= "# polling 3G\n"; - $rrdupdatesh .= "3GSTATS=`awk -F, 'getline 2 {print \$2 \":\" \$8 \":\" \$9}' < /tmp/3gstats.$ifname\`\n"; - $rrdupdatesh .= "$rrdtool update N:\"\$3GSTATS\""; + $rrdupdatesh .= "GSTATS=`awk -F, 'getline 2 {print \$2 \":\" \$8 \":\" \$9}' < /tmp/3gstats.$ifname`\n"; + $rrdupdatesh .= "$rrdtool update $rrddbpath$ifname$cellular N:\"\$GSTATS\""; } } |