Bug #886
closed
RRD graph generation time scaling not written correctly
Added by Adam Stylinski about 14 years ago.
Updated over 13 years ago.
Description
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).
As discovered in this thread: http://forum.pfsense.org/index.php/topic,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
We're seeing this too. Our RRD graphs were fine up until yesterday's release.
I've disabled the 12 hour timespan graph for now. I'll have to look into it later.
- 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
hmm, the quality RRD doesn't seem to be working recently, although for entirely different reasons I'm sure.
All RRD graphs are working fine @ Pfsense nanobsd 1G 2.0-RC3 (i386) built on Wed Aug 3 20:04:02 EDT 2011
- Status changed from Feedback to Resolved
Also available in: Atom
PDF