mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
no rrdcached for create !
git-svn-id: http://www.observium.org/svn/observer/trunk@1456 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -32,7 +32,6 @@ if(mysql_affected_rows()) {
|
|||||||
if($debug) { echo("$rrd "); }
|
if($debug) { echo("$rrd "); }
|
||||||
|
|
||||||
if (!is_file($rrd)) {
|
if (!is_file($rrd)) {
|
||||||
|
|
||||||
rrdtool_create ($rrd, "--step 300 \
|
rrdtool_create ($rrd, "--step 300 \
|
||||||
DS:read:DERIVE:600:0:125000000000 \
|
DS:read:DERIVE:600:0:125000000000 \
|
||||||
DS:written:DERIVE:600:0:125000000000 \
|
DS:written:DERIVE:600:0:125000000000 \
|
||||||
|
|||||||
@@ -7,7 +7,14 @@ function rrdtool_update($rrdfile, $rrdupdate)
|
|||||||
|
|
||||||
function rrdtool_create($rrdfile, $rrdupdate)
|
function rrdtool_create($rrdfile, $rrdupdate)
|
||||||
{
|
{
|
||||||
return rrdtool("create", $rrdfile, $rrdupdate);
|
global $config; global $debug;
|
||||||
|
|
||||||
|
$command = $config['rrdtool'] . " create $rrdfile $rrdupdate";
|
||||||
|
|
||||||
|
if ($debug || TRUE) { echo($command."\n"); }
|
||||||
|
|
||||||
|
return shell_exec($command);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function rrdtool_fetch($rrdfile, $rrdupdate)
|
function rrdtool_fetch($rrdfile, $rrdupdate)
|
||||||
@@ -40,7 +47,7 @@ function rrdtool($command, $file, $options)
|
|||||||
$command .= " --daemon " . $config['rrdcached'];
|
$command .= " --daemon " . $config['rrdcached'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($debug) { echo($command."\n"); }
|
if ($debug || TRUE) { echo($command."\n"); }
|
||||||
return shell_exec($command);
|
return shell_exec($command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user