[rrd-users] Re: "UNKNOWN" data
Kempf, Reed
rkempf at rightnow.com
Thu Oct 4 19:13:04 MEST 2001
I figured the problem out finally. I was actually recreating the database
everytime my ksh script ran. Thus I was never appending new data into the
rrd.
whew!
Thanks for the response
ReedK
-----Original Message-----
From: Kempf, Reed
Sent: Thursday, October 04, 2001 10:08 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: "UNKNOWN" data
Here is the output of the create and update:
rrdtool create /home/rrdtool/data_bases/hms/981.rrd --start 1002209801
--step 300 DS:about_time:GAUGE:1200:0:U DS:faq_time:GAUGE:1200:0:U
RRA:AVERAGE:0.5:1:2500 RRA:MIN:0.5:1:2500 RRA:MAX:0.5:1:2500
+ cat /home/rrdtool/out_files/hms/faq/981.out
+ read INPUT
+ echo 981 10/04/2001 09:56:55 .001097 5.004733
+ awk {print $2,$3}
+ HUMANTIME=10/04/2001 09:56:55
+ date +%s -d 10/04/2001 09:56:55
+ EPOCHTIME=1002211015
+ echo 981 10/04/2001 09:56:55 .001097 5.004733
+ awk {print $4}
+ ABOUT_REQ=.001097
+ echo 981 10/04/2001 09:56:55 .001097 5.004733
+ awk {print $5}
+ FAQ_REQ=5.004733
+ echo rrdtool update 981.rrd 1002211015:.001097:5.004733
rrdtool update 981.rrd 1002211015:.001097:5.004733
+ rrdtool update /home/rrdtool/data_bases/hms/981.rrd -t about_time:faq_time
1002211015:.001097:5.004733
+ rm -f /home/rrdtool/out_files/hms/faq/981.out
+ read INPUT
+ let NUMBER = NUMBER + 1
+ [ 982 -le 981 ]
I have my heartbeat set to 1200 seconds and the interval is around every 2
minutes that a value is updated into the rrd.
I'm confused
ReedK
-----Original Message-----
From: Alex van den Bogaerdt [mailto:alex at slot.hollandcasino.nl]
Sent: Thursday, October 04, 2001 9:39 AM
To: Kempf, Reed
Cc: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Re: "UNKNOWN" data
Kempf, Reed wrote:
> 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.
[snip scripts create and update]
Yeah, but how do you fetch the data. I guess that this is your problem.
If you create a database {now}, it will start at {now-size} end end at
{now}. If you then update it a few times, the database will start at
time {last_update-size} and end at {last_update}.
If you query for a part of the database that has not yet been
populated (or if you view it after dumping it) you won't see
anything else than NaN values.
Also, you specified a heartbeat time of 1200. If your updates are
further apart than 1200 seconds, unknowns occur.
Last but not least, you should modify your script so that the
rrdtool update command is written to disk. You can then replay
your create and update, even more important so can we. After
debugging you can disable this of course.
cheers,
--
__________________________________________________________________
/ alex at slot.hollandcasino.nl alex at ergens.op.het.net \
| work private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| Technical questions sent directly to me will be nuked. Use the list. |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/ |
| http://rrdtool.eu.org --> tutorial |
+----------------------------------------------------------------------+
--
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
--
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
--
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