Announcement

Collapse
No announcement yet.

Centreon : "Database error: Could not connect to database"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Centreon : "Database error: Could not connect to database"

    Hello,
    I'm running CES 3.3 and added NagVis (1.8.x).
    When I suceeded in giving the rights to NagVis to reach my Centreon data, Centreon started displaying : "Database error: Could not connect to database", though the centreon user has all privileges on "centreon" and "centreon_storage".

    Here's my central-broker-master.log :
    [1467987167] error: storage: rebuilder: could not connect to Centreon Storage database: could not open database: Access denied for user 'centreon'@'localhost' (using password: YES) QMYSQL: Unable to connect
    [1467988484] error: TCP: error while sending data to peer 'localhost:5670': The remote host closed the connection
    [1467988492] config: module applier: loading directory '/usr/share/centreon/lib/centreon-broker'
    [1467988492] config: correlation: invalid correlation configuration, correlation engine is NOT loaded
    [1467988492] config: applier: 14 modules loaded
    [1467988492] error: could not open database: Access denied for user 'centreon'@'localhost' (using password: YES) QMYSQL: Unable to connect
    [1467988492] error: TCP: could not connect to localhost:5670: Connection refused
    [1467988492] error: could not open database: Access denied for user 'centreon'@'localhost' (using password: YES) QMYSQL: Unable to connect
    (the last error is written hundreds of times ^^')
    And I couldn't find other errors in different logs. (Or wasn't able to find the right logs ...)

    If you have any idea to help me

    ----
    En français peut-être ?
    J'utilise CES 3.3 et y ai rajouté un NagVis (1.8.x - je ne me souviens plus). Centreon fonctionnait bien jusqu'à ce que je parvienne à donner les droits d'accès à NagVis pour qu'il fasse de belles cartes : Centreon s'est mis à afficher "Database error: Could not connect to database", il a pourtant tous les droits sur les bases de données "centreon" et "centreon-storage".
    Je n'ai pas trouvé d'autre erreur dans le logs que celle du central-broker-master.

    Si vous avez une idée ...
    Merci d'avance
    Last edited by EllaStique; 11th July 2016, 10:02.

  • #2
    Juste pour être sur, mysql est running?
    http://www.matthieurobin.com

    Comment


    • #3
      Oui, je fais régulièrement des "service mysql restart"

      Comment

      Working...
      X