Bug #886


RRD graph generation time scaling not written correctly

Added by Adam Stylinski about 11 years ago. Updated over 10 years ago.

RRD Graphs
Target version:
Start date:
Due date:
% Done:


Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:


In the latest snapshot as of now, certain RRD graphs cannot be rendered due to negative distance on the time axis (i.e. for some of the time intervals the end is before the start).

Actions #1

Updated by Jim Pingle about 11 years ago

As discovered in this thread:,27910.msg146548.html#msg146548

The time rendering issue seems to only happen between 12am and 12pm, so if you check it after noon, the graphs are OK and you can't reproduce the issue.

Error message from the thread (and mine is similar if I check it before noon)

Sep 10 00:40:13 php: /status_rrd_graph_img.php: Failed to create graph with error code 1, the error is: ERROR: start (1284120000) should be less than end (1284093613)/usr/bin/nice -n20 /usr/local/bin/rrdtool graph /tmp/GW_WAN-quality.rrd-12hour.png \ --start 1284120000 --end 1284093613 \ --title "`hostname` - GW_WAN :: Quality - 7 hours - 1 minute average" \ --color SHADEA#eeeeee --color SHADEB#eeeeee \ --vertical-label "ms / " \ --height 200 --width 620 \ --lower-limit 0 \ DEF:delayraw=/var/db/rrd/GW_WAN-quality.rrd:delay:AVERAGE \ DEF:loss=/var/db/rrd/GW_WAN-quality.rrd:loss:AVERAGE \ "CDEF:delay=delayraw,1000,*" \ "CDEF:roundavg=delay,PREV,+,2,/" \ "CDEF:loss10=loss,-1,*" \ "CDEF:r0=delay,20,MIN" \ "CDEF:r1=delay,60,MIN" \ "CDEF:r2=delay,180,MIN" \ "CDEF:r3=delay,420,MIN" \ COMMENT:" Delay Packet loss\n" \ AREA:delay#990000:"> 420 ms" \ GPRINT:delay:MIN:" Min\: %7.2lf ms" \ GPRINT:loss:MIN:" Min\: %3.1lf %\n" \ AREA:r3#a83c3c:"180-420

Actions #2

Updated by Jonathan Puddle about 11 years ago

We're seeing this too. Our RRD graphs were fine up until yesterday's release.

Actions #3

Updated by Seth Mos about 11 years ago

  • Assignee set to Seth Mos

I've disabled the 12 hour timespan graph for now. I'll have to look into it later.

Actions #4

Updated by Seth Mos almost 11 years ago

  • Status changed from New to Feedback

in place of the 12 hour timespan I've made the 8hour timespan instead, which is easier to craft. This also has to do with #812

Needs feedback

Actions #5

Updated by Adam Stylinski almost 11 years ago

hmm, the quality RRD doesn't seem to be working recently, although for entirely different reasons I'm sure.

Actions #6

Updated by Daniel Jampen over 10 years ago

All RRD graphs are working fine @ Pfsense nanobsd 1G 2.0-RC3 (i386) built on Wed Aug 3 20:04:02 EDT 2011

Actions #7

Updated by Chris Buechler over 10 years ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF