Announcement

Collapse
No announcement yet.

Export Error

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

  • Export Error

    Hi,

    When I try to export my config I got this message, can you help me to understand the problem ? Thanks.

    PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'centreon.cfg_resource_instance_relations' doesn't exist' in /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement/Pdo.php:228
    Stack trace:
    #0 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
    #1 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
    #2 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)
    #3 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT instance...', Array)
    #4 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Centreon/Object/Relation/Relation.php(95): Zend_Db_Adapter_Pdo_Abstract->query('SELECT instance...', Array)
    #5 /usr/local/centreon/www/modules/centreon-clapi/core/lib in /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement/Pdo.php on line 234

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    Bonjour,

    Lorsque je tente d'exporter ma configuration j'ai le message ci dessous, pourriez vous me dire ce qui cloche ou orienter mes recherches de solutions ? Merci.

    PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'centreon.cfg_resource_instance_relations' doesn't exist' in /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement/Pdo.php:228
    Stack trace:
    #0 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
    #1 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
    #2 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Adapter/Abstract.php(468): Zend_Db_Statement->execute(Array)
    #3 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT instance...', Array)
    #4 /usr/local/centreon/www/modules/centreon-clapi/core/lib/Centreon/Object/Relation/Relation.php(95): Zend_Db_Adapter_Pdo_Abstract->query('SELECT instance...', Array)
    #5 /usr/local/centreon/www/modules/centreon-clapi/core/lib in /usr/local/centreon/www/modules/centreon-clapi/core/lib/Zend/Db/Statement/Pdo.php on line 234


    Si je ne me trompe pas les versions sont les suivantes :
    Nagios 3.4.1
    Centreon 2.6.32
    Clapi 1.8.0
    Last edited by sede62; 6 days ago.

  • #2
    Hi.

    It was an Export Error, I solved my problem.

    Now I have an Import Error : /usr/share/centreon/www/modules/centreon-clapi/core/centreon -u admin -p password -i /tmp/centreon_clapi_import_commands.txt

    >> Invalid credentials.

    My username and password are Ok, I use it to connect to my centreon web page.

    I tryed to change my password, same problem.

    It's a fresh install of Centreon 3.4.1

    Comment


    • #3
      I created a new admin account : it works.

      An other problem : Hosts are imported but no Service imported.

      I run a second time the clapi import command : There are some services added but not all (96/1225)

      Must I run an other command ?
      Last edited by sede62; 5 days ago.

      Comment

      Working...
      X