Shorena, how do you get the stats from bitcoind?
I just "ask" bitcoind what I want to know. Had to start a reindex yesterday because the DB got corrupted, thus they currently look bad.
n="$(bitcoind getinfo | grep connections | egrep -o [0-9]*)"
rrdtool update connections.rrd N:$n