Announcement

Collapse
No announcement yet.

impossible d'ajouter des hosts

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

  • impossible d'ajouter des hosts

    bonjour

    voilà j'ai à nouveau quelques problèmes, après avoir importer ma configuration nagios dans centreon , j'ai bien les hôtes que j'avais créé, avant d'installer centreon.(dans configuration et monitoring)

    mais voilà dès que j'essaye d'ajouter dans centreon un hôte il n'apparaît pas dans monitoring, comment cela ce fait-il , même en redemarrant nagios, en relançant mon navigateur.

    si quelqu'un a une idée ....

    config: nagios 2.10, centreon 1.4.1 ubuntu 7.04

  • #2
    tu les vois dans nagios tes hosts ?

    car moi j'avais le meme soucis et cela provenait du fait que j'avais pas créer de htpasswd pour mon interface de nagios...

    si c'est cela il te suffit de creer un user authorisé dans oreons et dans nagios à la fois.

    htpasswd -c /etc/nagios2/htpasswd.users user

    ensuite tu reload ton serveur apache, ton nagios
    et cela devrait suffir.

    si cela suffit pas il faut que tu modifiie ton cig.cfg afin d'y autoriser ton user et voilà...

    Comment


    • #3
      vu que je n'arrive pas a ajouter des hôtes depuis centreon , ils n'apparaissent pas non plus dans nagios..
      cependant j'ai effectué, ta manip mais sa n'a rien changé, tout ce que je peux faire c'est modifier le fichier hosts mais bon du coup centreon perd de son utilité,

      Comment


      • #4
        Est-ce que les fichiers on été déplacés par Centreon vers Nagios ?
        Si oui, est-ce que Nagios a été rechargé après le déplacement?
        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


        • #5
          heuu..
          je suis un peut (voir beaucoup) novice, comment je peux vérifier si cela a bien été fait

          Comment


          • #6
            Poste ici le rapport de génération de conf...

            Comment


            • #7
              quand je fais générer j'ai ça
              au dessus :
              Code:
              Warning: fopen(/usr/lib/nagios/plugins/oreon.conf) [function.fopen]: failed to open stream: No such file or directory in /usr/local/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: No such file or directory in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 106
              
              Warning: Invalid argument supplied for foreach() in /usr/local/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: No such file or directory in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 138
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168
              
              Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 171
              
              Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 66
              au dessous:

              Code:
              cgi.cfg - déplacement OK
              checkcommands.cfg - déplacement OK
              contactgroups.cfg - déplacement OK
              contacts.cfg - déplacement OK
              dependencies.cfg - déplacement OK
              escalations.cfg - déplacement OK
              hostextinfo.cfg - déplacement OK
              hostgroups.cfg - déplacement OK
              hosts.cfg - déplacement OK
              meta_commands.cfg - déplacement OK
              meta_contact.cfg - déplacement OK
              meta_contactgroup.cfg - déplacement OK
              meta_dependencies.cfg - déplacement OK
              meta_escalations.cfg - déplacement OK
              meta_host.cfg - déplacement OK
              meta_hostgroup.cfg - déplacement OK
              meta_services.cfg - déplacement OK
              meta_timeperiod.cfg - déplacement OK
              misccommands.cfg - déplacement OK
              nagios.cfg - déplacement OK
              perfparse.cfg - déplacement OK
              resource.cfg - déplacement OK
              serviceextinfo.cfg - déplacement OK
              servicegroups.cfg - déplacement OK
              services.cfg - déplacement OK
              timeperiods.cfg - déplacement OK
              
              Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.
              quand je fais ensuite une vérification avec -v ,il me dit que j'ai une erreur au niveau de misccommands.cfg ,qui correspond au service perfdata, Si je désactive ce service, et que je refais un test, il me dit que les fichiers de conf exite déja

              quand je vais dans centreon modifier la commande perfdata jai ça au dessus de la comamnde
              Code:
              Warning: opendir(/usr/lib/nagios/plugins/) [function.opendir]: failed to open dir: No such file or directory in /usr/local/oreon/www/include/configuration/configObject/command/DB-Func.php on line 147
              
              Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/oreon/www/include/configuration/configObject/command/DB-Func.php on line 148
              
              Warning: closedir(): supplied argument is not a valid Directory resource in /usr/local/oreon/www/include/configuration/configObject/command/DB-Func.php on line 160
              voilà je sais pas si ça peut aider, mon bon désoler de ne pas être plus explicite
              Last edited by sam450; 8 November 2007, 15:43.

              Comment


              • #8
                petit up

                voila le problème ce situais au niveau des répertoires d'installation de nagios dans centreon
                mais j'ai toujours un petit problème lors de la génération
                Code:
                Nagios 2.10
                Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
                Last Modified: 10-21-2007
                License: GPL
                
                Reading configuration data...
                
                Error: Could not add object property in file '/usr/local/oreon/filesGeneration/nagiosCFG/misccommands.cfg' on line 53.
                
                ***> 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.
                
                
                Nagios 2.10
                Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
                Last Modified: 10-21-2007
                License: GPL
                
                Error: Could not add object property in file '/usr/local/oreon/filesGeneration/nagiosCFG/misccommands.cfg' on line 53.
                ***> One or more problems was encountered while reading configuration data...
                
                cgi.cfg - déplacement OK
                checkcommands.cfg - déplacement OK
                contactgroups.cfg - déplacement OK
                contacts.cfg - déplacement OK
                dependencies.cfg - déplacement OK
                escalations.cfg - déplacement OK
                hostextinfo.cfg - déplacement OK
                hostgroups.cfg - déplacement OK
                hosts.cfg - déplacement OK
                meta_commands.cfg - déplacement OK
                meta_contact.cfg - déplacement OK
                meta_contactgroup.cfg - déplacement OK
                meta_dependencies.cfg - déplacement OK
                meta_escalations.cfg - déplacement OK
                meta_host.cfg - déplacement OK
                meta_hostgroup.cfg - déplacement OK
                meta_services.cfg - déplacement OK
                meta_timeperiod.cfg - déplacement OK
                misccommands.cfg - déplacement OK
                nagios.cfg - déplacement OK
                perfparse.cfg - déplacement OK
                resource.cfg - déplacement OK
                serviceextinfo.cfg - déplacement OK
                servicegroups.cfg - déplacement OK
                services.cfg - déplacement OK
                timeperiods.cfg - déplacement OK
                
                Generating SNMPTT configuration files...
                Cannot open /etc/snmp/centreon_traps/snmptt-cisco.conf in write mode - Export aborded
                
                Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.
                quand j'edit le fichier de conf en question le problème se situe au niveau de la commande perfdata
                définit comme suis
                Code:
                define command{
                	command_name			process-service-perfdata
                	command_line			$USER1$/process-service-perfdata "$LASTSERVICECHECK$"
                
                "$HOSTNAME$""$SERVICEDESC$""$SERVICEOUTPUT$"
                
                "$SERVICESTATE$""$SERVICEPERFDATA$"
                }
                apré quelques recherches j'ai reussi a modifier le fichier maos j'ai toujours un meesage d'erreur
                Nagios 2.10
                Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
                Last Modified: 10-21-2007
                License: GPL

                Reading configuration data...

                Error: Timeperiod 'meta_timeperiod' has already been defined
                Error: Could not register timeperiod (config file '/usr/local/oreon/filesGeneration/nagiosCFG/meta_timeperiod.cfg', starting on line 20)

                ***> 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.


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

                Error: Timeperiod 'meta_timeperiod' has already been defined
                Error: Could not register timeperiod (config file '/usr/local/oreon/filesGeneration/nagiosCFG/meta_timeperiod.cfg', starting on line 20)
                ***> One or more problems was encountered while reading configuration data...

                cgi.cfg - déplacement OK
                checkcommands.cfg - déplacement OK
                contactgroups.cfg - déplacement OK
                contacts.cfg - déplacement OK
                dependencies.cfg - déplacement OK
                escalations.cfg - déplacement OK
                hostextinfo.cfg - déplacement OK
                hostgroups.cfg - déplacement OK
                hosts.cfg - déplacement OK
                meta_commands.cfg - déplacement OK
                meta_contact.cfg - déplacement OK
                meta_contactgroup.cfg - déplacement OK
                meta_dependencies.cfg - déplacement OK
                meta_escalations.cfg - déplacement OK
                meta_host.cfg - déplacement OK
                meta_hostgroup.cfg - déplacement OK
                meta_services.cfg - déplacement OK
                meta_timeperiod.cfg - déplacement OK
                misccommands.cfg - déplacement OK
                nagios.cfg - déplacement OK
                perfparse.cfg - déplacement OK
                resource.cfg - déplacement OK
                serviceextinfo.cfg - déplacement OK
                servicegroups.cfg - déplacement OK
                services.cfg - déplacement OK
                timeperiods.cfg - déplacement OK
                si je modifie le fichier en question il me refait le même message pour tout les autres fichier de conf
                Last edited by sam450; 12 November 2007, 18:18.

                Comment


                • #9
                  violà après un certain nombre de recherche
                  j'a i plus ou moins résolut le problème mais un nouveau est apparu

                  voila le fichier généré

                  Code:
                  Nagios 2.10
                  Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
                  Last Modified: 10-21-2007
                  License: GPL
                  
                  Reading configuration data...
                  
                  Running pre-flight check on configuration data...
                  
                  Checking services...
                  Checked 8 services.
                  Checking hosts...
                  Checked 8 hosts.
                  Checking host groups...
                  Checked 2 host groups.
                  Checking service groups...
                  Checked 0 service groups.
                  Checking contacts...
                  Checked 3 contacts.
                  Checking contact groups...
                  Checked 1 contact groups.
                  Checking service escalations...
                  Checked 0 service escalations.
                  Checking service dependencies...
                  Checked 0 service dependencies.
                  Checking host escalations...
                  Checked 0 host escalations.
                  Checking host dependencies...
                  Checked 0 host dependencies.
                  Checking commands...
                  Checked 52 commands.
                  Checking time periods...
                  Checked 5 time periods.
                  Checking extended host info definitions...
                  Checked 8 extended host info definitions.
                  Checking extended service info definitions...
                  Checked 8 extended service info definitions.
                  Checking for circular paths between hosts...
                  Checking for circular host and service dependencies...
                  Checking global event handlers...
                  Checking obsessive compulsive processor commands...
                  Checking misc settings...
                  
                  Total Warnings: 0
                  Total Errors: 0
                  
                  Things look okay - No serious problems were detected during the pre-flight check
                  
                  Nagios 2.10
                  Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
                  Last Modified: 10-21-2007
                  License: GPL
                  
                  Projected scheduling information for host and service
                  checks is listed below. This information assumes that
                  you are going to start running Nagios with your current
                  config files.
                  
                  HOST SCHEDULING INFORMATION
                  ---------------------------
                  Total hosts: 8
                  Total scheduled hosts: 8
                  Host inter-check delay method: SMART
                  Average host check interval: 60.00 sec
                  Host inter-check delay: 7.50 sec
                  Max host check spread: 30 min
                  First scheduled check: Tue Nov 13 16:15:07 2007
                  Last scheduled check: Tue Nov 13 16:15:59 2007
                  
                  
                  SERVICE SCHEDULING INFORMATION
                  -------------------------------
                  Total services: 8
                  Total scheduled services: 8
                  Service inter-check delay method: SMART
                  Average service check interval: 120.00 sec
                  Inter-check delay: 15.00 sec
                  Interleave factor method: SMART
                  Average services per host: 1.00
                  Service interleave factor: 1
                  Max service check spread: 30 min
                  First scheduled check: Tue Nov 13 16:17:07 2007
                  Last scheduled check: Tue Nov 13 16:18:52 2007
                  
                  
                  CHECK PROCESSING INFORMATION
                  ----------------------------
                  Service check reaper interval: 10 sec
                  Max concurrent service checks: Unlimited
                  
                  
                  PERFORMANCE SUGGESTIONS
                  -----------------------
                  * Host checks might be scheduled too closely together - consider increasing 'check_interval' option for your hosts
                  
                  
                  cgi.cfg - déplacement KO
                  checkcommands.cfg - déplacement OK
                  contactgroups.cfg - déplacement KO
                  contacts.cfg - déplacement KO
                  dependencies.cfg - déplacement OK
                  escalations.cfg - déplacement OK
                  hostextinfo.cfg - déplacement OK
                  hostgroups.cfg - déplacement KO
                  hosts.cfg - déplacement KO
                  meta_commands.cfg - déplacement OK
                  meta_contact.cfg - déplacement OK
                  meta_contactgroup.cfg - déplacement OK
                  meta_dependencies.cfg - déplacement OK
                  meta_escalations.cfg - déplacement OK
                  meta_host.cfg - déplacement OK
                  meta_hostgroup.cfg - déplacement OK
                  meta_services.cfg - déplacement OK
                  meta_timeperiod.cfg - déplacement OK
                  misccommands.cfg - déplacement OK
                  nagios.cfg - déplacement KO
                  perfparse.cfg - déplacement OK
                  resource.cfg - déplacement KO
                  serviceextinfo.cfg - déplacement OK
                  servicegroups.cfg - déplacement OK
                  services.cfg - déplacement KO
                  timeperiods.cfg - déplacement KO
                  
                  Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.
                  quand je lance ensuite dans le terminal une vérification il me dit

                  Error: Could not find any host matching '3750_MP_1'
                  Error: Could not expand hostgroups and/or hosts specified in extended host info (config file '/usr/local/nagios/etc/hostextinfo.cfg', starting on line 44)
                  donc il est pas content car il trouve pas l'hôte , mais c'est celui que je viens de créer

                  Comment


                  • #10
                    Sorry i don't speak french well enough to type it, but I had this problem today too... try...

                    root:/usr/local/nagios/etc# mkdir /usr/lib/nagios
                    root:/usr/local/nagios/etc# mkdir /usr/lib/nagios/plugins
                    root:/usr/local/nagios/etc# ln -s /usr/local/nagios/libexec/usr/lib/nagios/plugins
                    Last edited by TrendyPick; 16 November 2007, 20:45. Reason: extra spaces

                    Comment


                    • #11
                      I will try, thanks for your answer

                      edit a fonctionne mieux mais j'ai toujours rien dans "vues oreon"
                      Last edited by sam450; 19 November 2007, 16:56.

                      Comment

                      Working...
                      X