Announcement

Collapse
No announcement yet.

problème de génération des fichiers de configuration

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

  • longuele
    replied
    Problème résolu

    Bonsoir

    Lors de l'installation j'ai oublié de préciser que j'utilisais la version 2.9 disant 2.x de Nagios; par maladresse j'ai gardé 1.

    Leave a comment:


  • longuele
    replied
    Bonjour

    Merci pour l'intérêt que vous accorder à mon problème. voici le fichier

    1 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/hosts.cfg
    2 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/services.cfg
    3 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/misccommands.cfg
    4 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/checkcommands.cfg
    5 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/contactgroups.cfg
    6 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/contacts.cfg
    7 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/hostgroups.cfg
    8 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/timeperiods.cfg
    9 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/escalations.cfg
    10 cfg_file=/usr/local/oreon/filesGeneration/nagiosCFG/dependencies.cfg
    11 resource_file=/usr/local/oreon/filesGeneration/nagiosCFG/resource.cfg
    12 log_file=/usr/local/nagios/var/nagios.log
    13 temp_file=/usr/local/nagios/var/nagios.tmp
    14 status_file=/usr/local/nagios/var/status.log
    15 aggregate_status_updates=0
    16 nagios_user=nagios_user
    17 nagios_group=nagios
    18 enable_notifications=1
    19 execute_service_checks=1
    20 accept_passive_service_checks=1
    21 enable_event_handlers=1
    22 log_rotation_method=d
    23 log_archive_path=/usr/local/nagios/var/archives/
    24 check_external_commands=0
    25 command_check_interval=1s
    26 command_file=/usr/local/nagios/var/rw/nagios.cmd
    27 downtime_file=/usr/local/nagios/var/downtime.log
    28 comment_file=/usr/local/nagios/var/comment.log
    29 lock_file=/usr/local/nagios/var/nagios.lock
    30 retain_state_information=1
    31 state_retention_file=/usr/local/nagios/var/status.sav
    32 retention_update_interval=60
    33 use_retained_program_state=1
    34 use_syslog=0
    35 log_notifications=1
    36 log_service_retries=1
    37 log_host_retries=1
    38 log_event_handlers=1
    39 log_initial_states=1
    40 log_external_commands=1
    41 sleep_time=1
    42 inter_check_delay_method=s
    43 service_interleave_factor=s
    44 max_concurrent_checks=20
    45 service_reaper_frequency=10
    46 interval_length=60
    47 enable_flap_detection=0
    48 soft_state_dependencies=0
    49 service_check_timeout=60
    50 host_check_timeout=60
    51 event_handler_timeout=60
    52 notification_timeout=60
    53 ocsp_timeout=1
    54 perfdata_timeout=5
    55 obsess_over_services=1
    56 ocsp_command=check_snmp
    57 process_performance_data=1
    58 service_perfdata_command=process-service-perfdata
    59 check_for_orphaned_services=1
    60 check_service_freshness=1
    61 freshness_check_interval=5
    62 date_format=euro
    63 illegal_object_name_chars=~!$%^&*"|'<>?,()=
    64 illegal_macro_output_chars=`~$^&"|'<>
    65 admin_email=admin
    Merci pour votre aide

    Leave a comment:


  • boyerf
    replied
    Error in configuration file '/usr/local/oreon/www/../filesGeneration/nagiosCFG/nagiosCFG.DEBUG' - Line 43 (UNKNOWN VARIABLE)

    Tu peux nous envoyer les lignes de 30 à 60 de ce fichier (en nous indiquant la ligne 43) ?

    Leave a comment:


  • problème de génération des fichiers de configuration

    Bonjour je suis nouveau sur le forum et nouveau dans l'utilisation de nagios et oreon.

    J'ai fait une installation d'oreon 1.4 et nagios 2.9

    Au nineau de l'interface d'oreon je n'arrive pas générer les fichiers de configurartion de nagios. J'ai le message d'erreur ci-dessous

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

    Reading configuration data...

    Error in configuration file '/usr/local/oreon/www/../filesGeneration/nagiosCFG/nagiosCFG.DEBUG' - Line 43 (UNKNOWN VARIABLE)

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


    Cependant en mode texte tout semble marcher voici la preuve:

    NEX-DSK-006:~# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

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

    Reading configuration data...

    Running pre-flight check on configuration data...

    Checking services...
    Checked 5 services.
    Checking hosts...
    Checked 1 hosts.
    Checking host groups...
    Checked 1 host groups.
    Checking service groups...
    Checked 0 service groups.
    Checking contacts...
    Checked 1 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 22 commands.
    Checking time periods...
    Checked 4 time periods.
    Checking extended host info definitions...
    Checked 0 extended host info definitions.
    Checking extended service info definitions...
    Checked 0 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


    Merci pour votre aide:confused:
Working...
X