On 2013-08-28 03:40, Peter Childs wrote:
Gday folks.
I'm fiddling around with remote RRD storage via rrdcached. Most of the rrdtool stuff is wrapped in includes/rrdtool.inc.php which is wonderful from this perspective.
Not within this include is the usage of is_file() to determine the existence of an rrd file.
In discovery the pattern is something like If( ! is_file( some.rrd ) ) { rrdtool_create ( … )}
In graphing the pattern is something like If ( is_file( some.rrd ) { graph some stuff… }
Would there be any support for moving this usage into a rrdtool_file_exists( ) thin wrapper for is_file ?
This would make it much easier to extended includes/rrdtool.inc.php to support storage of RRD's on remote storage (and potentially distribute over multiple remote storage devices ..)
Thoughts?
Why ever would you want to do such a thing?
adam.