tbrehm
2013-07-17 0ad6ee4be56a20be5a376beb98733056a541d5fa
Fix: remove bind mounts from df output in monitor
1 files modified
7 ■■■■ changed files
server/lib/classes/monitor_tools.inc.php 7 ●●●● patch | view | raw | blame | history
server/lib/classes/monitor_tools.inc.php
@@ -473,7 +473,7 @@
    }
    public function monitorDiskUsage() {
        global $conf;
        global $app,$conf;
        /* the id of the server as int */
        $server_id = intval($conf['server_id']);
@@ -485,7 +485,10 @@
        $state = 'ok';
        /** Fetch the data of ALL devices into a array (needed for monitoring!) */
        $dfData = shell_exec('df -hT 2>/dev/null');
        //$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');
        // split into array
        $df = explode("\n", $dfData);