From a74f8e724392bcf49dc218822f5e8601796a0886 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 30 Jan 2010 16:40:20 +0000 Subject: [PATCH] one shellexec down, 200 to go.. git-svn-id: http://www.observium.org/svn/observer/trunk@749 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/polling/hr-mib_storage.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/hr-mib_storage.inc.php b/includes/polling/hr-mib_storage.inc.php index b2a97d8e0..f7df40773 100755 --- a/includes/polling/hr-mib_storage.inc.php +++ b/includes/polling/hr-mib_storage.inc.php @@ -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 \