Announcement

Collapse
No announcement yet.

installation Nagios 2.4 avec oreon 1.3 RC1

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

  • installation Nagios 2.4 avec oreon 1.3 RC1

    Bonjour,

    je tente d'installer nagios 2.4 mais pour le moment je suis bloquer ici j'ai eu d'autres messages d'erreur avant que j'ai réussi à passer:

    Je ne vois pas du tout ce qu'il faut faire avec cette histoire de contact group et host group si quelqu'un peut m'expliquer voici mes fichiers et erreur.
    • Code:
      PCTESTINFO:/usr/local/nagios/etc# ../bin/nagios -v nagios.cfg
      
      Nagios 2.4
      Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
      Last Modified: 05-31-2006
      License: GPL
      
      Reading configuration data...
      
      Error: Invalid hostgroup object directive 'contact_groups'.
      Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' on line 52.
      
      ***> 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.
      
      PCTESTINFO:/usr/local/nagios/etc#



    j'ai déplacer le contenu de hostgroups.cfg et contactgroups.cfg dans hosts.cfg

    hosts.cfg
    • Code:
      ################################################################################
      
      # 'localhost' host definition 6
      define host{
              host_name               localhost
              alias                   local
              address                 127.0.0.1
              check_command           check-host-alive
              max_check_attempts      20
              notification_interval   60
              notification_period     24x7
              notification_options    d,u,r
              }
      # 'nt-admins' contact group definition
      define contactgroup{
              contactgroup_name       nt-admins
                   alias                   NT Administrators
                   members                 nagios
                                      }
      
      #'www-admins' contact group definition
      #define contactgroup{
      #        contactgroup_name       www-admins
      #               alias                   Web Responsable
      #               members                 nagios
      #               }
      
      
      
      
      #at group definition
      define hostgroup{
              hostgroup_name  www
                     alias           Web sites
                     contact_groups  nagios
                      members         localhost
                                      }



    nagios.cfg
    • Code:
      ##############################################################################
      #
      # NAGIOS.CFG - Sample Main Config File for Nagios
      #
      # Read the documentation for more information on this configuration
      # file.  I've provided some comments here, but things may not be so
      # clear without further explanation.
      #
      # Last Modified: 07-04-2002
      #
      ##############################################################################
      
      
      # LOG FILE
      # This is the main log file where service and host events are logged
      # for historical purposes.  This should be the first option specified
      # in the config file!!!
      
      log_file=/usr/local/nagios/var/nagios.log
      
      
      
      # OBJECT CONFIGURATION FILE(S)
      # This is the configuration file in which you define hosts, host
      # groups, contacts, contact groups, services, etc.  I guess it would
      # be better called an object definition file, but for historical
      # reasons it isn't.  You can split object definitions into several
      # different config files by using multiple cfg_file statements here.
      # Nagios will read and process all the config files you define.
      # This can be very useful if you want to keep command definitions
      # separate from host and contact definitions...
      
      # Plugin commands (service and host check commands)
      # Arguments are likely to change between different releases of the
      # plugins, so you should use the same config file provided with the
      # plugin release rather than the one provided with Nagios.
      cfg_file=/usr/local/nagios/etc/checkcommands.cfg
      
      # Misc commands (notification and event handler commands, etc)
      cfg_file=/usr/local/nagios/etc/misccommands.cfg
      
      # You can split other types of object definitions across several
      # config files if you wish (as done here), or keep them all in a
      # single config file.
      
      #cfg_file=/usr/local/nagios/etc/contactgroups.cfg
      cfg_file=/usr/local/nagios/etc/contacts.cfg
      cfg_file=/usr/local/nagios/etc/dependencies.cfg
      cfg_file=/usr/local/nagios/etc/escalations.cfg
      #cfg_file=/usr/local/nagios/etc/hostgroups.cfg
      cfg_file=/usr/local/nagios/etc/hosts.cfg
      cfg_file=/usr/local/nagios/etc/services.cfg
      cfg_file=/usr/local/nagios/etc/timeperiods.cfg
      #cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
      #cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
    Dj Awax - www.djawax.net

    Linux Debian 4 etch
    centreon 1.4.2.7
    nagios 2.12

  • #2
    Tu n'essaierais pas de mettre une conf d'un nagios 1.x dans un nagios 2.x ?
    Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
    Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
    Fedora Core 5 - 2.6.20-1.2320

    Comment


    • #3
      Originally posted by DonKiShoot
      Tu n'essaierais pas de mettre une conf d'un nagios 1.x dans un nagios 2.x ?
      exact c'est ce que j'ai du faire.

      Car j'arrive pas à installer nagios 2.4


      Je suis sous debian, ci vous avez un lien ou une doc explicative car celle que j'ai trouvé je bloc pour le moment je recommencerai depuis le départ demain.
      Dj Awax - www.djawax.net

      Linux Debian 4 etch
      centreon 1.4.2.7
      nagios 2.12

      Comment


      • #4
        Donc il va falloir que tu lises la doc car y a des choses qui ont changé dans la syntaxe des fichiers :wink:
        Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
        Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
        Fedora Core 5 - 2.6.20-1.2320

        Comment

        Working...
        X