Announcement

Collapse
No announcement yet.

[REGLE] Probleme pour ajouter hosts, user au niveau des .cfg

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

  • [REGLE] Probleme pour ajouter hosts, user au niveau des .cfg

    Bonjour j'ai un petit pb pour utiliser mon oreon. Quand je clique sur générer, j'ai plusieurs erreurs notamment au niveau de hosts.cfg et nagios.cfg. Pourtant le host ajouté me semble correctement effectué. Et mon fichier nagios.cfg semble correctement configuré. Si quelqu'un a une idee ...

    Nagios 1.4.1
    Copyright (c) 1999-2006 Ethan Galstad (nagios[email protected])
    Last Modified: 05-15-2006
    License: GPL

    Reading configuration data...

    Error: Invalid host object directive 'hostgroups'.

    Error: Could not add object property in file '/usr/local/oreon/filesGeneration/nagiosCFG/hosts.cfg' on line 24.


    ***> 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 the host 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 on the main and host config files, as well as the
    'Whats New' section to find out what has changed.


    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
    misccommands.cfg - déplacement OK
    nagios.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...
    Nagios 1.4.1
    Copyright (c) 1999-2006 Ethan Galstad ([email protected])
    Last Modified: 05-15-2006
    License: GPL

    Reading configuration data...

    Error: Invalid host object directive 'hostgroups'.

    Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' on line 24.


    ***> 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 on the main and host config files, as well as the
    'Whats New' section to find out what has changed.

    failed - aborting restart.



    Fichier de configuration nagios.cfg

    cfg_file=/usr/local/nagios/etc/hosts.cfg
    cfg_file=/usr/local/nagios/etc/services.cfg
    cfg_file=/usr/local/nagios/etc/misccommands.cfg
    cfg_file=/usr/local/nagios/etc/checkcommands.cfg
    cfg_file=/usr/local/nagios/etc/contactgroups.cfg
    cfg_file=/usr/local/nagios/etc/contacts.cfg
    cfg_file=/usr/local/nagios/etc/hostgroups.cfg
    cfg_file=/usr/local/nagios/etc/servicegroups.cfg
    cfg_file=/usr/local/nagios/etc/timeperiods.cfg
    cfg_file=/usr/local/nagios/etc/escalations.cfg
    cfg_file=/usr/local/nagios/etc/dependencies.cfg
    cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
    cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
    resource_file=/usr/local/nagios/etc/resource.cfg
    log_file=/usr/local/nagios/var/nagios.log
    temp_file=/usr/local/nagios/var/nagios.tmp
    status_file=/usr/local/nagios/var/status.log
    aggregate_status_updates=0
    status_update_interval=15
    nagios_user=nagios
    nagios_group=nagios
    enable_notifications=1
    execute_service_checks=1
    accept_passive_service_checks=1
    enable_event_handlers=1
    log_rotation_method=d
    log_archive_path=/usr/local/nagios/var/archives/
    check_external_commands=1
    command_check_interval=1s
    command_file=/usr/local/nagios/var/rw/nagios.cmd
    downtime_file=/usr/local/nagios/var/downtime.log
    comment_file=/usr/local/nagios/var/comment.log
    lock_file=/usr/local/nagios/var/nagios.lock
    retain_state_information=1
    state_retention_file=/usr/local/nagios/var/status.sav
    retention_update_interval=60
    use_retained_program_state=1
    use_syslog=0
    log_notifications=1
    log_service_retries=1
    log_host_retries=1
    log_event_handlers=1
    log_initial_states=1
    log_external_commands=1
    sleep_time=1
    service_interleave_factor=s
    max_concurrent_checks=20
    service_reaper_frequency=10
    interval_length=60
    use_agressive_host_checking=1
    enable_flap_detection=0
    low_service_flap_threshold=25.0
    high_service_flap_threshold=50.0
    low_host_flap_threshold=25.0
    high_host_flap_threshold=50.0
    soft_state_dependencies=0
    service_check_timeout=60
    host_check_timeout=60
    event_handler_timeout=60
    notification_timeout=60
    ocsp_timeout=1
    perfdata_timeout=5
    obsess_over_services=0
    process_performance_data=1
    check_for_orphaned_services=0
    check_service_freshness=1
    date_format=euro
    illegal_object_name_chars=~!$%^&*"|'<>?,()=
    illegal_macro_output_chars=`~$^&"|'<>
    admin_email=admin
    [email protected]
    Nagios 2.5
    oreon-1.3-RC3-1
    Apache 2 / Mysql 4.1 / PHP 5

  • #2
    Peux-tu mettre dans ta signature, ton environnement de travail.

    Ensuite, as-tu bien créer, un host et son hostgroup ?? puis
    exporter > générer les fichiers + déplacer les ficheirs + restart nagios
    Ubuntu 8.04
    Nagios 3.2 + nagios-plugins-1.4.14
    ndoutils-1.4b9
    Centreon 2.1.8
    centreon-syslog-frontend-1.2.1 + centreon-syslog-server-1.1

    Comment


    • #3
      Oui j'ai bien crée un host ainsi que son hostgroup.
      Nagios 2.5
      oreon-1.3-RC3-1
      Apache 2 / Mysql 4.1 / PHP 5

      Comment


      • #4
        J'ai l'impression que mes fichiers de configuration sont corrects, peut etre un détail m'echappe.
        Nagios 2.5
        oreon-1.3-RC3-1
        Apache 2 / Mysql 4.1 / PHP 5

        Comment


        • #5
          As tu précisé dans Oreon que tu utilisais nagios 1.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


          • #6
            Merci c'etait bien ca!
            Nagios 2.5
            oreon-1.3-RC3-1
            Apache 2 / Mysql 4.1 / PHP 5

            Comment


            • #7
              Ou est ce que l'on peut préciser Nagios 1.X car j'ai la meme erreur
              Merci d'avance

              Comment

              Working...
              X