tbrehm
2012-01-11 e61ed86fe51c5a0300d867a33f50711dbf6b4fe0
server/lib/classes/monitor_tools.inc.php
@@ -879,7 +879,7 @@
         /*
          * Fetch the output
          */
         $data['output'] = shell_exec('zypper --non-interactive up');
         $data['output'] = shell_exec('zypper lu');
      } else {
         /*
          * It is not Debian/Ubuntu, so there is no data and no state
@@ -1722,6 +1722,8 @@
            // fwrite($fp, "GET / HTTP/1.0\r\n\r\n");
            $out = "GET / HTTP/1.1\r\n";
            $out .= "Host: localhost\r\n";
            $out .= "User-Agent: Mozilla/5.0 (ISPConfig monitor)\r\n";
            $out .= "Accept: application/xml,application/xhtml+xml,text/html\r\n";
            $out .= "Connection: Close\r\n\r\n";
            fwrite($fp, $out);
            stream_set_timeout($fp, 5); // Timeout after 5 seconds