[rrd-users] rrdgraph never returns with small step

Josh Wyatt josh.wyatt at hcssystems.com
Thu Jun 19 19:22:09 CEST 2008


Alex van den Bogaerdt wrote:
> On Thu, Jun 19, 2008 at 11:13:00AM -0400, Josh Wyatt wrote:
> 
>> So it appears to be something related to how the x grid is drawn, which also explains the dependency on the time.
>>
>> Now what :) ?  How can I get my X grid without lots of manual --x-grid A:B:C:D:E:F fun?
> 
> 
> 1: make sure to try the latest RRDtool, just in case a known bug
>    was fixed.
> 
> 2: Find a way to reproduce the problem. This most certainly means
>    you need to get rid of 'now'.  When running rrdtool (be it to
>    update or to create a graph) you store the commands in a separate
>    file, which you can then replay should the problem occur.
> 
> 3: create a small but complete example of the problematic behaviour.
>    This means you should make a script which performs all of the
>    following actions, without excess baggage:
> 
>    a) create a small database (usually some 20 to 30 rows will do)
>    b) update these rows
>    c) generate an image from it, showing a 'good' case
>    c) generate an image from it, showing a 'bad' case
> 
>    e.g. if creating the image results in bad behaviour at endtime
>    12:34:59 but not at time 12:34:58, this is important information
>    when hunting for the bug
> 
>    Why this script?  So that other people can try and reproduce the
>    problem.  It could be a problem which doesn't exist in other
>    systems.
> 
> HTH

You got it, see attached, three shell scripts for testcase1:

1. tc1-create.sh: Creates a 20-row RRD 'tc1.rrd' with one DS and one RRA, 1 second step with an absolute start time of 1213895143.  Also creates /tmp/current.timestamp with that start time for subsequent use by later scripts...

2. tc1-update.sh: Updates 'tc1.rrd' with about 16 rows starting with absolute timestamp +1 and incrementing by exactly 1 setp

3. tc1-graph.sh: Attempts to create a graph using absolute timestamp as start, and timestamp + 20 as end.

Run them in sequence: tc1-create.sh, tc1-update.sh, then tc1-graph.sh You will see that the graph command hangs.

Let me know if I can assist further.  Also FYI, I am running 1.3.0 currently.  Happy to try another version.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc1-update.sh
Type: application/x-shellscript
Size: 310 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080619/189ff520/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc1-create.sh
Type: application/x-shellscript
Size: 314 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080619/189ff520/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tc1-graph.sh
Type: application/x-shellscript
Size: 313 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080619/189ff520/attachment-0002.bin 


More information about the rrd-users mailing list