[rrd-users] starting at 1970 / Pipe error / Absolute seconds on X-axis
chenghu at ugcs.caltech.edu
Sat Aug 10 20:54:39 MEST 2002
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)
I would like to control rrdtool from a C program. The way I am doing it
now is using rrdtool's remote control feature. I fork a process to exec
rrdtool, and make a pipe from the controlling program to the rrdtool
program's stdin. Then I use fprintf with the pipe to issue commands.
While this is working for small amounts of data, I get a pipe error signal
if I input a lot of data too fast, which I need to do.
Is there a more efficient way to control rrdtool from C? If not, does
anyone know how I can avoid this error?
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?
Thanks and regards,
(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)
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users