tbrehm
2011-04-01 dfcd553fdcf9556596506ffda66d716f6db5dc6b
server/lib/classes/monitor_tools.inc.php
@@ -519,7 +519,7 @@
      $server_id = intval($conf['server_id']);
      /**  get the "active" Services of the server from the DB */
      $services = $app->dbmaster->queryOneRecord('SELECT * FROM server WHERE server_id = ' . $server_id);
      $services = $app->db->queryOneRecord('SELECT * FROM server WHERE server_id = ' . $server_id);
      /*
       * If the DB is down, we have to set the db to "yes".
       * If we don't do this, then the monitor will NOT monitor, that the db is down and so the
@@ -597,7 +597,7 @@
      /* Monitor BIND-Server */
      $data['bindserver'] = -1; // unknown - not needed
      if ($services['dns_server'] == 1) {
         if ($this->_checkTcp('localhost', 53)) {
         if ($this->_checkUdp('localhost', 53)) {
            $data['bindserver'] = 1;
         } else {
            $data['bindserver'] = 0;