diff --git a/includes/rrdtool.inc.php b/includes/rrdtool.inc.php index b5c8164ea..40a7cd4ea 100644 --- a/includes/rrdtool.inc.php +++ b/includes/rrdtool.inc.php @@ -178,7 +178,14 @@ function rrdtool($command, $filename, $options) function rrdtool_create($filename, $options) { - return rrdtool("create", $filename, $options); + + global $config; global $debug; + $command = $config['rrdtool'] . " create $filename $options"; + if ($debug) { echo($command."\n"); } + + return shell_exec($command); + +# return rrdtool("create", $filename, $options); } function rrdtool_update($filename, $options)