mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
one shellexec down, 200 to go..
git-svn-id: http://www.observium.org/svn/observer/trunk@749 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -15,7 +15,7 @@ while ($dr = mysql_fetch_array($dq)) {
|
||||
$filedesc = str_replace("\"", "", str_replace("/", "_", $hrStorageDescr));
|
||||
$old_storage_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/storage-" . $filedesc . ".rrd";
|
||||
$storage_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/hrStorage-" . $hrStorageIndex . ".rrd";
|
||||
if(is_file($old_storage_rrd)) { shell_exec("mv $old_storage_rrd $storage_rrd"); }
|
||||
if(is_file($old_storage_rrd)) { rename($old_storage_rrd,$storage_rrd); }
|
||||
if (!is_file($storage_rrd)) {
|
||||
shell_exec($config['rrdtool'] . " create $storage_rrd \
|
||||
--step 300 \
|
||||
|
||||
Reference in New Issue
Block a user