[rrd-users] Wrong walues

Yoann Courbet adminresint.igi at euroconnect.fr
Thu Mar 28 11:04:11 MET 2002


Hello,

We use RRDTool to count the number of TCP sessions open on a Alteon ACE
Director 3.
The type of the mib OID is Counter32. We pool the value every 5 minutes.

For example if we obtain 1000 at 14h00 and 1005 at 14h05, the value put
in the RRDtool DB is not 5 
but 0.05 (5.xxxxxxe-01).

Any help would be greatly appreciated.

---------------------------
Here is a rrdtool fetch of our DB (example):

/usr/local/rrdtool-1.0.33/bin/rrdtool fetch chuquet-session.rrd AVERAGE
maxsessjacquardcurrentsessjacquard
...
1017308400: 3.9000000000e+02 3.0470686600e-01
1017308700: 3.9000000000e+02 2.6373204147e-01
...

The correct information should be : 

maxsessjacquardcurrentsessjacquard
...
1017308400: 3.9000000000e+02 3.0470686600e-00
1017308700: 3.9000000000e+02 2.6373204147e-00
...
--------------------------
--------------------------
Here is how we create the DB:

function createdb
{
               $RRDTOOLPATH/rrdtool create switch-session.rrd \
               DS:maxsessjacquard:GAUGE:600:0:U \
               DS:curentsessjacquard:COUNTER:600:0: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
}
---------------------------
---------------------------
Here is the script we use to obtain the value with snmpget

#!/bin/bash

SNMPPATH=/usr/bin

SNMPSESSIONMAXJACQUARD="enterprises.1872.2.1.8.2.5.1.5.1"
SNMPSESSIONTOTALJACQUARD="enterprises.1872.2.1.8.2.5.1.3.1"

case $3 in
        alldata)
                $SNMPPATH/snmpget $1 $2 $SNMPSESSIONMAXJACQUARD
$SNMPSESSIONTOTALJACQUARD |cut -d= -f2|sed s/" "//g
        ;;
esac
----------------------------
----------------------------
After we update the DB with  :
rrdtool update switch-session.rrd N:$maxjacquard:$totaljacquard
----------------------------

Regards.
-- 
Yoann COURBET
Administrateur Reseau
130, rue du Bourg-Bele - BP 21099 - 72001 LE MANS Cedex 1 - FRANCE

Tel : (33) 02 43 14 12 76 - Fax : (33) 02 43 14 12 77
http://www.euroconnect.fr

Le contenu de ce message ne represente en aucun cas un engagement de la
part d'Euro Connect sous reserve de tout accord conclu par ecrit entre
vous et Euro Connect. Toute publication ou diffusion, meme partielle,
doit etre autorisee préalablement.

--
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