Simon, thank you for your previous response. Related to my previous posting, I have the following questions: <br><br>How do I output the values stored in an rrd database?<br><br>Also, does rrdtool have an option for viewing all the rrd databases -- similar to that of mysql's "SHOW DATABASES" command? And is it possible to delete an existing rrd database?
<br><br>Also, does the rrd-users archive have a search option? so far, I've tried googling with mixed results.<br><br>- Bita.<br><br><br><div><span class="gmail_quote">On 5/16/07, <b class="gmail_sendername">Simon Hobson
</b> <<a href="mailto:linux@thehobsons.co.uk">linux@thehobsons.co.uk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
betamaz wrote:<br>>I'm new to rrdtool and have been reading up on the tutorial posted<br>>on the main webpage. The examples in the tutorial describe how to<br>>create a database by taking measurements. For example, using snmp or
<br>>it gives basic examples where the inputs are via the rrdtool create<br>>command line (for example the speed inputs for test.rrd). Is there a<br>>way, to read inputs from command line and create a database out of
<br>>that (similar to gnuplot)?<br><br>Yes, RRD doesn't care where the data comes from, all it sees are a<br>series of update with timestamp and a number of values. As long as<br>the timestamps a) make sense for the data, and b) are always
<br>increasing, then rrd will handle it.<br><br>So assuming you have a file containing a series of records, one per<br>line, of the form time:value then you simply need to write a script<br>of the form :<br><br>create rrd file
<br>while (read timestamp:value pair)<br> update rrd with timestamp and value<br>done<br>create graph<br><br> With the exception of drawing a graph which normally takes a few<br>lines of arguments, the above can be written in about the same number
<br>of statements in most languages (whether that be Bash shell script,<br>Perl, ...). How much extra checking etc you put in is up to you and<br>what you know about the source of the data - such as is the file<br>format likely to be correct (ie it's created by a trustworthy
<br>automated tool) or do you need to do extensive validation on the<br>input ?<br></blockquote></div><br>