[rrd-users] "UNKNOWN" data

Kempf, Reed rkempf at rightnow.com
Thu Oct 4 16:24:16 MEST 2001


Hi all,

I am a relative newby to rrdtool and am having trouble populating the
rrdtool database.  I come up with all "UNKNOWN" pdps (primary data points).

I have a unix ksh script which through the use of pl/sql requests web pages
and records the number of seconds, the pl/sql dumps the request times to a
flat file which rrdtool then picks up and populates the rrdtool database.
It seems to work pretty slick until I changed the code to use two different
rrdtool datasources.

Here is how I create my database:

rrdtool create /home/rrdtool/data_bases/hms/${NUMBER}.rrd \
--start $RRDDATE \
--step 300 \
DS:about_time:GAUGE:1200:0:U \
DS:faq_time:GAUGE:1200:0:U \
RRA:AVERAGE:0.5:300:2500 \
RRA:MIN:0.5:300:2500 \
RRA:MAX:0.5:300:2500

and here is how I populate the database:

cat /home/rrdtool/out_files/hms/faq/${NUMBER}.out | while read INPUT ; do
HUMANTIME=`echo ${INPUT} | awk '{print $2,$3}'`
EPOCHTIME=`date +%s -d "$HUMANTIME"`
ABOUT_REQ=`echo ${INPUT} | awk '{print $4}'`
FAQ_REQ=`echo ${INPUT} | awk '{print $5}'`

echo "rrdtool update ${NUMBER}.rrd ${EPOCHTIME}:${ABOUT_REQ}:${FAQ_REQ}"
rrdtool update /home/rrdtool/data_bases/hms/${NUMBER}.rrd \
-t about_time:faq_time ${EPOCHTIME}:${ABOUT_REQ}:${FAQ_REQ}

There is no set interval for populating the database.  In this case I
populate the database on an average of 2-4 minute intervals.

If anyone has an idea of how to correctly create the rrd, that would be
appreciated.

thanks

ReedK




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