Announcement

Collapse
No announcement yet.

probleme d'export

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

  • probleme d'export

    bonjour,

    je viens de finir d'installer mon serveur avec plus ou moins de mal...

    voila quand je fait un export j'ai un message d'erreur suivant

    Progression (0%)
    Préparation de l'environnement... OK
    Génération des fichiers... NOK
    Avorté.
    [ - ] Central
    sudo: >>> /etc/sudoers: Alias `CENTREON' already defined near line 121 <<<
    sudo: parse error in /etc/sudoers near line 121
    sudo: no valid sudoers sources found, quitting
    sudo: unable to initialize policy plugin
    voici une capture pour mieux comprendre.

    Capture.jpg

    je n'ai encore rien configurer sur le serveur.
    est ce un message normal ou non ?

    j'ai le service centreontrapd qui a ce status la aussi

    "centreontrapd est mort mais le fichier pid existe"

    merci par avance de votre aide
    Last edited by herald17; 3rd June 2014, 14:46.

  • #2
    Bonjour,

    Peux tu regarder dans ton fichier /etc/sudoers si tu as pas des lignes en doubles ?

    Cordialement

    Comment


    • #3
      ca donne ca mon /etc/sudoers

      ## BEGIN: CENTREON SUDO
      #Add by CENTREON installation script
      User_Alias CENTREON=centreon,apache
      Defaults:CENTREON !requiretty
      # Monitoring engine Restart
      CENTREON ALL = NOPASSWD: /etc/init.d/centengine* restart
      CENTREON ALL = NOPASSWD: /etc/init.d/centengine restart
      # Monitoring engine reload
      CENTREON ALL = NOPASSWD: /etc/init.d/centengine* reload
      CENTREON ALL = NOPASSWD: /etc/init.d/centengine reload
      # Monitoring engine force-reload
      CENTREON ALL = NOPASSWD: /etc/init.d/centengine* force-reload
      CENTREON ALL = NOPASSWD: /etc/init.d/centengine force-reload
      # Monitoring engine test config
      CENTREON ALL = NOPASSWD: /usr/sbin/centengine* -v *
      CENTREON ALL = NOPASSWD: /usr/sbin/centengine -v *
      # Monitoring engine test for optim config
      CENTREON ALL = NOPASSWD: /usr/sbin/centengine* -s *
      CENTREON ALL = NOPASSWD: /usr/sbin/centengine -s *
      # Snmptrapd Restart
      CENTREON ALL = NOPASSWD: /etc/init.d/snmptrapd restart
      # Centreontrapd restart
      CENTREON ALL = NOPASSWD: /etc/init.d/centreontrapd restart
      # Centreontrapd reload
      CENTREON ALL = NOPASSWD: /etc/init.d/centreontrapd reload
      # CentStorage Restart
      CENTREON ALL = NOPASSWD: /etc/init.d/centstorage restart
      # CentStorage stop
      CENTREON ALL = NOPASSWD: /etc/init.d/centstorage stop
      # CentStorage start
      CENTREON ALL = NOPASSWD: /etc/init.d/centstorage start
      # Broker engine Restart
      CENTREON ALL = NOPASSWD: /etc/init.d/cbd* restart
      CENTREON ALL = NOPASSWD: /etc/init.d/cbd restart

      Comment


      • #4
        Peux-tu vérifier que tu n'as pas 2 fichiers:
        • /etc/sudoers (qui contient les lignes pour Centreon)
        • /etc/sudoers.d/centreon
        Centreon Syslog Module Manager/Developper
        Centreon E2S Module Manager/Developper
        Centreon Enterprise Server (2.x / 3.x) : Centreon Engine 1.3.x / 1.4.x, Centreon Broker 2.6.x / 2.8.x , Centreon 2.x, Centreon-Syslog 1.5.x, Centreon E2S 2.0
        Nagios 3.x et NDOutil 1.x

        Comment


        • #5
          j'ai bien un fichier centreon dans /etc/sudoers.d/centreon

          J'ai renommé le fichier en centreon.old et reglé le probleme a été reglé.

          merci beaucoup AkHeNaToN tes lumieres mon bien eclairaient
          Last edited by herald17; 13th June 2014, 13:05.

          Comment


          • #6
            Bonjour,
            J'ai le même problème : en voulant faire un export, la console reste à 0% de progression.
            La solution proposée au-dessus ne fonctionne pas. J'ai redémarré MySQL en croyant que le problème venait de la base de données, mais rien n'a changé.
            Voici mes fichiers log :
            Centreon broker master.log
            [1467744141] config: applier: 14 modules loaded
            [1467750397] config: main: configuration update requested
            [1467750397] config: log applier: applying 1 logging objects
            [1467750397] config: module applier: loading directory '/usr/share/centreon/lib/centreon-broker'
            [1467750397] config: correlation: invalid correlation configuration, correlation engine is NOT loaded
            [1467750397] config: applier: 14 modules loaded
            [1467751273] error: SQL: could not execute prepared statement: MySQL server has gone away QMYSQL3: Unable to reset statement
            [1467751273] error: could not commit to database 'centreon_storage' on host 'localhost': MySQL server has gone away QMYSQL: Unable to commit transaction
            [1467757863] error: could not commit to database 'centreon_storage' on host 'localhost': MySQL server has gone away QMYSQL: Unable to commit transaction
            [1467757863] error: could not commit to database 'centreon_storage' on host 'localhost': MySQL server has gone away QMYSQL: Unable to commit transaction
            Centengine.log
            [1467722917] [1656]
            [1467723267] [1656] HOST ALERT: localhost;DOWN;HARD;10;(No output returned from host check)
            [1467723267] [1656] HOST NOTIFICATION: centengineadmin;localhost;DOWN;notify-host-by-email;(No output returned from host check)
            [1467727051] [1656] Warning: A system time change of 0d 0h 0m 5s (backwards in time) has been detected. Compensating...
            [1467728264] [1569] Centreon Engine 1.5.0 starting ... (PID=1569)
            [1467728264] [1569] Local time is Tue Jul 5 16:17:44 2016
            [1467728264] [1569] LOG VERSION: 2.0
            [1467728264] [1569] Event loop start at Tue Jul 5 16:17:44 2016
            [1467728264] [1569] Configuration loaded, main loop starting.
            [1467730484] [1569] HOST NOTIFICATION: centengineadmin;localhost;DOWN;notify-host-by-email;(No output returned from host check)
            [1467730672] [1569] Caught SIGTERM, shutting down ...
            [1467730672] [1569] Successfully shutdown ... (PID=1569)
            [1467730673] [2636] Event broker module '/usr/lib64/centreon-engine/externalcmd.so' initialized successfully
            [1467730674] [2636] Centreon Broker: log applier: applying 1 logging objects
            [1467730674] [2636] Event broker module '/usr/lib64/nagios/cbmod.so' initialized successfully
            [1467730674] [2636] Centreon Engine 1.5.0 starting ... (PID=2636)
            [1467730674] [2636] Local time is Tue Jul 5 16:57:53 2016
            [1467730674] [2636] LOG VERSION: 2.0
            [1467730674] [2636] INITIAL HOST STATE: Centreon-Server;UP;HARD;1;
            [1467730674] [2636] INITIAL SERVICE STATE: Centreon-Server;Ping;OK;HARD;1;
            [1467730674] [2636] INITIAL SERVICE STATE: Centreon-Server;Memory;OK;HARD;1;
            [1467730674] [2636] INITIAL SERVICE STATE: Centreon-Server;Load;OK;HARD;1;
            [1467730674] [2636] INITIAL SERVICE STATE: Centreon-Server;Disk-/;OK;HARD;1;
            [1467730674] [2636] Event loop start at Tue Jul 5 16:57:54 2016
            [1467730674] [2636] Configuration loaded, main loop starting.
            [1467740444] [2636] Reading main configuration file '/etc/centreon-engine/centengine.cfg'.
            [1467740444] [2636] Processing object config file '/etc/centreon-engine/hostTemplates.cfg'
            [1467740444] [2636] Processing object config file '/etc/centreon-engine/hosts.cfg'
            [1467740444] [2636] Processing object config file '/etc/centreon-engine/serviceTemplates.cfg'
            Au fait, je tourne avec CES 3.3

            Comment

            Working...
            X