[rrd-users] Problems with rrd_update()
Mikael Löfstrand
mld at fluffigt.com
Thu Jul 14 17:25:02 MEST 2005
Hello,
I've just started out programming with librrd (instead of piping the
commands to the rrdtool binary) and I'm having problems with rrd_update
in librrd. I'm getting a seg fault every time I try to use it(!). Right
now I'm using version 1.0.49 as per Debian/stable (Sarge). I know the
1.2.10 release is out there but I'd like to stay stable with Debian as
far as possible.
I've tried to create/update the rrd with a pipe too and that's working.
Heres the compiling and running of "rrdlib.c" (attached):
mld at netflow:~/v2/rrdtest$ gcc -Wall -lrrd -o rrdlib rrdlib.c
mld at netflow:~/v2/rrdtest$ ./rrdlib
rrd_create: 0
Segmentation fault
And the pipe.c (attached):
mld at netflow:~/v2/rrdtest$ gcc -Wall -o pipe pipe.c
mld at netflow:~/v2/rrdtest$ ./pipe
create --start -32140800 --step 300 test.rrd DS:test1:ABSOLUTE:600:0:U
DS:test2:ABSOLUTE:600:0:U RRA:AVERAGE:0.5:6:336
update -t test1:test2 test.rrd 1121250600:111:555
update -t test1:test2 test.rrd 1121250900:222:444
update -t test1:test2 test.rrd 1121251200:333:333
update -t test1:test2 test.rrd 1121251500:444:222
update -t test1:test2 test.rrd 1121251800:555:111
mld at netflow:~/v2/rrdtest$ ./pipe | rrdtool -
OK u:0.00 s:0.01 r:0.00
OK u:0.09 s:0.01 r:0.09
OK u:0.09 s:0.01 r:0.09
OK u:0.09 s:0.01 r:0.09
OK u:0.09 s:0.01 r:0.09
OK u:0.09 s:0.01 r:0.09
Does anyone have any ideas on what might be wrong?
Mikael Löfstrand
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 1k (1089 bytes)
-- URL : http://lists.ee.ethz.ch/p/pipe.c
-- Attached file removed by Ecartis and put at URL below --
-- Type: text/plain
-- Size: 1k (1637 bytes)
-- URL : http://lists.ee.ethz.ch/p/rrdlib.c
--
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://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the rrd-users
mailing list