[rrd-users] I must be really stupid - current traffic on graph - HOW?

Timothy Brown tbrown at incanta.net
Thu May 17 16:13:05 MEST 2001


Hi folks,

I'm trying to get RRDtool to show me the last sample it grabbed.

My database sez:

rrdtool create hostname.rrd \
	DS:input:COUNTER:600:U:U \
	DS:output:COUNTER:600:U:U \
	RRA:AVERAGE:0.5:1:600 RRA:MAX:0.5:1:600 RRA:LAST:0.5:1:600

My graph command says:

DEF:inoctets=/home/noctools/rrd-datasets/internap-seattle1.rrd:input:AVERAGE \
DEF:outoctets=/home/noctools/rrd-datasets/internap-seattle1.rrd:output:AVERAGE \
AREA:inoctets#00FF00:"Inbound Traffic"  \
AREA:outoctets#0000FF:"Outbound Traffic"  \
GPRINT:inoctets:LAST:"Current Inbound: %lf KB"  \
GPRINT:outoctets:LAST:"Current Outbound: %lf KB"');

Even when I create separate defs for the LAST RRA, it doesn't show up right.

My insertion looks like: 

/usr/bin/rrdtool update /home/noctools/rrd-datasets/$host.rrd N:$invar:$outvar 

Everything else works.

Some help would be greatly appreciated.

Thanks,
Tim


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list