The next thing to do would be to create a '5' type graph definition, along with the d/w/m/y types. This would need to be done in many places, since there are many chacks for [dwmy] which would need ot be extended to [dwmy5]. Also, youd need to add a section in the javascript to handle this (for actuals popup) and set the appropriate data widths.
An alternative way to do it would be to use a graph style suffix - currently, there is 'D' for double width data (a 2year graph) and H for half-width (a 6month graph). Maybe add a 'F' suffix for five-times data width (this would mean 'daily' graphs show 5 days, yearly show 5 years, etc). This would be the simplest way to do it, but you'd need to extend all 8 RRAs in every RRD file to 2.5 times their current length (IE, add 1200 rows to make a total of 2000 rows). If you do this, you'd need to have your new style (eg: 'x3F' added in the sorder definition in the routers2.conf, and give it a default description in the %gstyles hash in the initlabels function of routers2.cgi. Then you'd have to edit graphpopupscript() to add '$stretch*=5 if($gstyle=~/F/);' and make_graph() to add 'elsif($gstyle=~/F/) { $width*=5; }' to make the data width increase in these two cases.
You can see how the /D/, /H/ and /Q/ suffixes are handled and do it that way.
The problem with all this, of course, is that it only handles one case and makes no allowances for when someone has not extended their RRAs.Statistics: Posted by stevesh — Tue Feb 19, 2013 2:15 pm
]]>