rrdcached support (yarly!)

git-svn-id: http://www.observium.org/svn/observer/trunk@1291 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-04 21:09:22 +00:00
parent c98b16c559
commit c5f7f9ac5f
3 changed files with 18 additions and 4 deletions

View File

@@ -56,8 +56,11 @@ if($_GET['debug']) {
}
if($rrd_options) {
if($_GET['debug']) { echo("<pre>".$config['rrdtool'] . " graph $graphfile $rrd_options\n\n"); }
$thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
if($config['rrdcached']) { $rrd_switches = " --daemon ".$config['rrdcached'] . " "; }
$rrd_cmd = $config['rrdtool'] . " graph $graphfile $rrd_options" . $rrd_switches;
$woo = shell_exec($rrd_cmd);
if($_GET['debug']) { echo("<pre>".$rrd_cmd."</pre>"); }
# $thing = popen($config['rrdtool'] . " -",'w');
# fputs($thing, "graph $graphfile $rrd_options");
# pclose($thing);