mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated rrd_purge to echo removed files/folders
This commit is contained in:
@@ -35,7 +35,9 @@ if ($options['f'] === 'rrd_purge') {
|
||||
if (is_numeric($config['rrd_purge']) && $config['rrd_purge'] > 0) {
|
||||
$cmd = "find ".$config['rrd_dir']." -mtime +".$config['rrd_purge']." -exec rm -Rf {} \;";
|
||||
$purge = `$cmd`;
|
||||
echo 'purged old rrd files';
|
||||
if (!empty($purge)) {
|
||||
echo $purge;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user