[rrd-users] Re: starting at 1970 / Pipe error / Absolute seconds on X-axis

Alex van den Bogaerdt alex at ergens.op.HET.NET
Sat Aug 10 23:40:40 MEST 2002


Cheng Hu wrote:
> 
> 
> Hello,
> 
> Problem 1
> =========
> 
> This may seem absurd but I have a need to specify --start 0 or some small
> number with rrdtool create. That is, I want it to start timing from 0 or 1
> seconds after 1970. However if I specify 0 or 1, the start time defaults
> to now. If I specify 100 say, I get an error message asking if I meant
> month 100 instead, but I don't. (If you really want to know why I need to
> do this, I've included it at the end)

The workaround probably is to use the following format:

"--start"  "19700101 00:00"

Note that this assumes UTC time.  For Europe, use time "19700101 01:00"


This may not work because of internal checks in the code, in which case
you really need to change the check.  That shouldn't be hard.



> Problem 3
> =========
> I'd like to display seconds since 1970 on my x-axis, but no strftime
> format will let me do it. Is there a way?

Hack the souce and just print the number.  A single "%s", not together
with %lf (in which case it would mean the SI unit) could mean seconds
since the epoch.  I think that already is in the developers release.


> (Reason: I am running of network stack monitoring program that I wrote
> that generates data on microsecond resolution, and generates a lot of
> data. I'd like to graph this using rrdtool (is there a better tool for
> this purpose?) so I convert microseconds to second, and seconds times
> 1000000. To avoid overflow, I need to start from time 0)

RRDtool is not a picture generator.  There are better tools for that.
Don't ask me which is best.  Why not simply use "gd" yourself?

HTH
-- 
   __________________________________________________________________
 / 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



More information about the rrd-users mailing list