[rrd-users] Segmentation Fault - Basic Test of RRDTool 1.2.19

This is a discussion on [rrd-users] Segmentation Fault - Basic Test of RRDTool 1.2.19 within the RRD Users forums, part of the Networking and Network Related category; Yes, I am a beginner on this - trying to work out how to use it. I can create an RRD ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2007
Mark Easton
 
Posts: n/a
Default [rrd-users] Segmentation Fault - Basic Test of RRDTool 1.2.19


Yes, I am a beginner on this - trying to work out how to use it. I can create
an RRD file, can update values to it and then fetch those values. But when I
come to do a graph I get a segmentation fault.

//Create graph

sprintf(argstr, "temperature.rrd --start %ld --step 60
DS:temp:GAUGE:120:-273:5000 RRA:AVERAGE:0.5:1:1200 RRA:MIN:0.5:60:400
RRA:MAX:0.5:60:400 RRA:AVERAGE:0.5:60:400", start_time); // evey min for 20
hours : every 10 minutes for 400 hours (max, min, ave)

ret = wrap_rrd_create( argstr);

//Add in many values using this
sprintf(str, "temperature.rrd %ld:%f", (long)next_time, value);
ret = wrap_rrd_update( str);

//When I do a fetch I can see that the values have loaded correctly, so now
using the same start and end time I want to produce a temp.png file

//Create Graph - but this returns a segmentation fault (core dumped)
sprintf(argstr, "temp.png --start %lu --end %lu
DEF:mytemp=temperature.rrd:temp:AVERAGE", (long)start_time, (long)end_time);

ret = wrap_rrd_graph( argstr);

//And now I get a segmentation fault. What am I doing wrong please?

TIA
Mark
--
View this message in context: http://www.nabble.com/Segmentation-F...html#a10025700
Sent from the RRDTool - User mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0