Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    0.9.9-1: Nagios NDO to many connections

    Scheduled Pinned Locked Moved Entwicklung
    2 Posts 2 Posters 1.3k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kingofmyfloh
      last edited by

      Hallo,

      jetzt habe ich wohl zu viele Rechner für die Nagios abfrage:

      
       /var/www/html/i-doit/controller -u workflow -p bla -i 1 -v -m nagios
       ...
      [*] Processing hosta.
      [*] Processing hostb.
      [*] Processing hostc.PHP Warning:  mysql_connect(): Too many connections in /usr/local/share/i-doit/src/classes/components/isys_component_database_mysql.class.php on line 34
      
      [*] dkfzvs4: Could not connect to NDO-Database
      [*] Processing hoste.PHP Warning:  mysql_connect(): Too many connections in /usr/local/share/i-doit/src/classes/components/isys_component_database_mysql.class.php on line 34
      ...
      
      Ich denke mal man sollt die offenen Verbindungen doch schließen und nicht nur vergessen:
      [b]src/ndo.inc.php[/b]:
      [code]function disconnectNDO() {
      	global $g_comp_database_ndo;
      
      	unset($g_comp_database_ndo);
      }[/code]
      
      VG Thomas Sesselmann
      
      1 Reply Last reply Reply Quote 0
      • D Offline
        dbluemer
        last edited by

        Hallo,

        die Verbindung wird geschlossen, da unset den Destruktor von $g_comp_database_ndo aufruft, in diesem wird die DB-Verbindung terminiert. Ich werde mir das mal genauer anschauen und bescheid geben, wenn ich weiss woranes liegt.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post