Announcement

Collapse
No announcement yet.

erreur redemarrage Nagios via oreon

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

  • erreur redemarrage Nagios via oreon

    bonjour

    je fait des modif sur mes hosts et pour qu'elles soient prisent en comptes il faut donc que je reload nagios ce que j'essaye de faire via l'interface mais j'obtiens une érreur bizarre ...

    Nagios 2.9
    Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
    Last Modified: 04-10-2007
    License: GPL

    Reading configuration data...

    Error: Service description, host name, or check command is NULL
    Error: Could not register service (config file '/var/www/oreon/filesGeneration/nagiosCFG/services.cfg', starting on line 3622)

    ***> The name of the main configuration file looks suspicious...

    Make sure you are specifying the name of the MAIN configuration file on
    the command line and not the name of another configuration file. The
    main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'

    ***> One or more problems was encountered while processing the config files...

    Check your configuration file(s) to ensure that they contain valid
    directives and data defintions. If you are upgrading from a previous
    version of Nagios, you should be aware that some variables/definitions
    may have been removed or modified in this version. Make sure to read
    the HTML documentation regarding the config files, as well as the
    'Whats New' section to find out what has changed.
    pourtant si je redémarre nagios via mon terminal sa passe bien ....

  • #2
    ta bien tout config dans CONFIG->NAGIOS-NAGIOS CFG ?
    Centreon 2.x

    Comment


    • #3
      j'aurais tendance a dire oui car il fait partie des fichier que j'ai reimporté

      Comment


      • #4
        en fait il semblearait que non car j'ai voulu reimporter tous les fichier comme expliqué dans le wiki mais dés le 1er fichier (checkcommands.cfg) j'ai :

        Code:
        Chargement du fichier KO
        a quoi cela est'il du ?

        Comment


        • #5
          Originally posted by driden91 View Post

          Error: Could not register service (config file '/var/www/oreon/filesGeneration/nagiosCFG/services.cfg', starting on line 3622)
          Il ne trouve pas le fichier ou il n'est pas bon.

          Effectivement, s'il t'a marqué chargement KO, c'est qu'il n'a pas aimé quelque chose.

          Edite ton fichier services.cfg avec Oreon et utilise le bouton "sauvegarder" se trouvant en haut de la page. S'il y a des erreurs, il affiche en règle générale des remarques en rouge sur la page là où il y a selon lui des erreurs ou des oublis.

          Navigues aussi entre les différents onglets comme par exemple celui qui se nomme "Relations".

          De même, pour ma part, j'avais omis des paramètres non obligatoires avec Nagios, mais devenus obligatoires avec Centreon. Je les repère maintenant avec le petit * rouge.

          Essaye de voir s'il ne manque pas un paramètre quelque part et réimporte-le.
          Je ne sais plus s'il t'indique ce qu'il ne va pas quand il t'affiche Chargement KO.
          Guigui

          > PAS DE SUPPORT VIA MP <

          "Ce n'est qu'en essayant continuellement que l'on finit par réussir. En d'autres termes, plus ça rate et plus on a de chances que ça marche !!" (Shadoks)

          Comment


          • #6
            bonjour

            j'ai donc réinstallé entièrement oreon , j'ai pu importer tous mes fichiers correctement.

            par contre, je veu supprimer certaines machines, je le fait donc dans la partie configuration, mais elle sont toujours visiblent dans la partie "monitoring"

            j'essaye donc de faire un reload de nagios et j'obtiens ca sur la page :

            Code:
            Warning: fopen(/usr/lib/nagios/plugins/oreon.conf) [function.fopen]: failed to open stream: Aucun fichier ou répertoire de ce type in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 22
            
            Warning: file(/usr/lib/nagios/plugins/oreon.conf) [function.file]: failed to open stream: Aucun fichier ou répertoire de ce type in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 106
            
            Warning: Invalid argument supplied for foreach() in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 108
            
            Warning: fopen(/usr/lib/nagios/plugins/oreon.conf) [function.fopen]: failed to open stream: Permission non accordée in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 138
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
            
            Warning: fclose(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 171
            
            Warning: fclose(): supplied argument is not a valid stream resource in /var/www/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 66

            Comment


            • #7
              bon j'ai trouvé ce qui allait pas, j'avais mal réglé les paths dans la partie "options"

              par contre je vois toujours mes machines dans la partie "monitoring" alors que je les ai supprimés dans la partie "configuration" mais sans leur adresse IP ... pourtant je supprime bien et le host et les services !
              Last edited by driden91; 24 September 2007, 17:05.

              Comment

              Working...
              X