Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
A few questions.
1) Why is this required?
2) Is this applicable for version 0.6.8?
3) I generate only two graphs which have different step. How would this effect the other graphs?
4) Are you suggesting that line 318 of rrd_functions.php be modified? From 0.6.8, below is what I have as the code.
> 1) Why is this required?
The way it is by default, the $timespan is equal to:
(the number of entires in an RRA) * (the number of steps in each entry) * 144 (144 seconds =2.4 minutes).
This becomes the number of seconds, negative from now. The start time of your graph.
In my configuration, I'm using 5 second steps, so this calculation gives me the wrong RRA to look at entirely.
> 2) Is this applicable for version 0.6.8?
I have checked both 0.67, and 0.68 and they both require this. However, if your step is not so different from this cacti default, no change should be required.
> 3) I generate only two graphs which have different step. How would this effect the other graphs?
I think this is something that needs to be looked at.
If you have largely different steps it could make a difference. Run the numbers, and see whether or not it would matter to you.
Ultimately, I think we'd want to be able to pass the a step variable from the graph configuration (as different datasources may have different steps) to the rrd_function.php. While we're at it we could also pass a graph_start (already there), and graph_end for creation of custom graphs.
> 4) Are you suggesting that line 318 of rrd_functions.php be modified?
yup.
Thanks for the reply Aaron, but this does not seems to work for me here.
Parse error: parse error, unexpected ')' in /usr/local/apache2/2.0.40/htdocs/cacti/include/rrd_functions.php on line 318
Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache2/2.0.40/htdocs/cacti/include/rrd_functions.php:318) in /usr/ local/apache2/2.0.40/htdocs/cacti/ds.php on line 161