Announcement

Collapse
No announcement yet.

Starting nagios:CONFIG ERROR!

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

  • superene13
    replied
    Bonjour,

    lorsque j'ai migré j'ai eu le même type de probleme. Il me semble que je m'en suis tiré en imprtant les fichiers un par un. En 1er le nagios.cfg puis le ressources.cfg puis le cgi.cfg puis les autres un par un.

    Leave a comment:


  • Elain
    started a topic Starting nagios:CONFIG ERROR!

    Starting nagios:CONFIG ERROR!

    bonjour aprés import de mon ancienne config de centreon 1.4.2.3 vers la version 2.1.5, j'ai ensuite exporter le fichier de configuration vers nagios,puis redemmarrer le sevice nagios.
    un erreur mes apparue lors de cette tentative :
    etc/init.d/nagios start
    Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.
    afin de connaitre le probleme j'ai essayer cette comme qui me renvoi la valeur ci-dessous.

    # /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

    Nagios Core 3.2.0
    Copyright (c) 2009 Nagios Core Development Team and Community Contributors
    Copyright (c) 1999-2009 Ethan Galstad
    Last Modified: 08-12-2009
    License: GPL

    Website: http://www.nagios.org
    Reading configuration data...
    Read main config file okay...
    Processing object config file '/usr/local/nagios/etc/hostTemplates.cfg'...
    Processing object config file '/usr/local/nagios/etc/hosts.cfg'...
    Processing object config file '/usr/local/nagios/etc/serviceTemplates.cfg'...
    Processing object config file '/usr/local/nagios/etc/services.cfg'...
    Processing object config file '/usr/local/nagios/etc/misccommands.cfg'...
    Processing object config file '/usr/local/nagios/etc/checkcommands.cfg'...
    Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
    Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
    Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
    Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
    Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
    Processing object config file '/usr/local/nagios/etc/escalations.cfg'...
    Processing object config file '/usr/local/nagios/etc/dependencies.cfg'...
    Processing object config file '/usr/local/nagios/etc/meta_commands.cfg'...
    Warning: Duplicate definition found for command 'check_meta' (config file '/usr/local/nagios/etc/meta_commands.cfg', starting on line 1
    Error: Could not add object property in file '/usr/local/nagios/etc/meta_commands.cfg' on line 19.
    Error processing object config files!


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

    et la commande ci dessous me renvoi :
    /usr/local/nagios/etc/nagios.cfg -v
    /usr/local/nagios/etc/nagios.cfg: line 99: unexpected EOF while looking for matching ``'
    /usr/local/nagios/etc/nagios.cfg: line 104: syntax error: unexpected end of file

    quelqu'un aurai t-il une idée afin de resoudre mon problème exportation ,je vous remercie d'avance de votre aide .

    cordialement
Working...
X