Hi all,

I am getting in and out bytes using snmpwalk through crontab every 5
minutes and updating the rrd using 'N'.

So what can be the reason for getting max value greater than actual
interface bandwith. (i.e. if the int b/w 8Kbytes/s, the max value exceeds 
beyond 8Kbytes/s).

Max value is obtained using graph function.

(This happens for currnet value also. Currnet value is obtained using
fetch command).

Just for reference:

1. defined rrd file as follows:

/usr/local/rrdtool-1.0.28/bin/rrdtool create --start $UT $1/$2.rrd \
DS:input:COUNTER:600:U:U DS:output:COUNTER:600:U:U RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797

2. updating the rrd file (via crontab using snmpwalk) using:

system("/usr/local/rrdtool-1.0.28/bin/rrdtool update
$LEASED_PATH/$FF[0].rrd N:$IN_HASH{$bytes}:$OUT_HASH{$bytes}");


3. getting max value by using:

$A=`/usr/local/rrdtool-1.0.28/bin/rrdtool graph /tmp/$cust.png --start
-$duration  DEF:inoctets=/home1/noc/leased/$cust.rrd:input:MAX
DEF:outoctets=/home1/noc/leased/$cust.rrd:output:MAX PRINT:inoctets:MAX:%lf 
PRINT:outoctets:MAX:%lf |grep -v x"`;


regards

anant

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to