Correct the rrd update command

This commit is contained in:
smos 2012-05-21 15:41:56 +02:00
parent 852171dd30
commit 2b095a3323

View File

@ -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\"";
}
}