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
+9 -2
View File
@@ -33,8 +33,15 @@ function rrdtool_lastupdate($rrdfile, $rrdupdate)
function rrdtool($command, $file, $options)
{
global $config; global $debug;
if ($debug) { echo($config['rrdtool'] . " $command $file $options \n"); }
return shell_exec($config['rrdtool'] . " $command $file $options");
$command = $config['rrdtool'] . " $command $file $options";
if($config['rrdcached'])
{
$command .= " --daemon " . $config['rrdcached'];
}
if ($debug) { echo($command."\n"); }
return shell_exec($command);
}
?>