Skip to content
Snippets Groups Projects
Commit 05481a4f authored by Marius Cramer's avatar Marius Cramer
Browse files

Implemented: FS#3010 - Remove mount --bind lines from df output in monitor

parent b41dfdd6
No related branches found
No related tags found
No related merge requests found
......@@ -73,8 +73,9 @@ class cronjob_monitor_disk_usage extends cronjob {
//$dfData = shell_exec('df -hT 2>/dev/null');
$app->uses('getconf');
$web_config = $app->getconf->get_server_config($conf['server_id'], 'web');
$dfData = shell_exec('df -hT|grep -v "'.$web_config['website_basedir'].'/" 2>/dev/null');
$dfData = shell_exec('df -hT -x simfs | awk \'!x[$1]++\' 2>/dev/null');
// split into array
$df = explode("\n", $dfData);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment