ftimme
2013-02-19 9b4cefd0ed5098fe7cd3f17d7f5ce97a8d729273
- Suppress error outputs of repquota and iptables/ip6tables.
1 files modified
8 ■■■■ changed files
server/lib/classes/monitor_tools.inc.php 8 ●●●● patch | view | raw | blame | history
server/lib/classes/monitor_tools.inc.php
@@ -302,7 +302,7 @@
        $state = 'ok';
        //* Fetch the data for all users
        $dfData = shell_exec('repquota -au');
        $dfData = shell_exec('repquota -au 2>/dev/null');
        //* Split into array
        $df = explode("\n", $dfData);
@@ -330,7 +330,7 @@
        }
        //** Fetch the data for all users
        $dfData = shell_exec('repquota -ag');
        $dfData = shell_exec('repquota -ag 2>/dev/null');
        //* split into array
        $df = explode("\n", $dfData);
@@ -1309,7 +1309,7 @@
                system('which iptables', $retval); // Debian, Ubuntu, Fedora
                if ($retval === 0) {
                        /*  Get the data of the log */
                        $data['output'] = '<h2>iptables -S (ipv4)</h2>'.shell_exec('iptables -S');
                        $data['output'] = '<h2>iptables -S (ipv4)</h2>'.shell_exec('iptables -S 2>/dev/null');
                        /*
                         * At this moment, there is no state (maybe later)
@@ -1325,7 +1325,7 @@
                system('which ip6tables', $retval); // Debian, Ubuntu, Fedora
                if ($retval === 0) {
                        /*  Get the data of the log */
                        $data['output'] .= '<br><h2>ip6tables -S (ipv6)</h2>'.shell_exec('ip6tables -S');
                        $data['output'] .= '<br><h2>ip6tables -S (ipv6)</h2>'.shell_exec('ip6tables -S 2>/dev/null');
                        /*
                         * At this moment, there is no state (maybe later)