Well, the error message says:

Unexpected token or statement in file '/usr/local/icinga/etc/conf.d/icinga.cfg' on line 18.

which is really odd because having TWO icinga.cfg at different places within the same tree structure isn't the way to do it:

@Khaja
Given the many threads you recently opened you seem to have problems following/understanding the documentation. If you would read the messages carefully you would be able to resolve some errors yourself saving a lot of time. In other cases it would helpful if you would provide necessary information in the initial posting.

Am 02.03.2013 05:20, schrieb Khaja Aziz:


------------------------------------------------------------------------
*From:* Joel Salas <[email protected]>
*To:* Khaja Aziz <[email protected]>; "[email protected]" <[email protected]>
*Sent:* Saturday, March 2, 2013 3:52 AM
*Subject:* Re: [icinga-users] .CONFIG ERROR! Start aborted icinga

Khaja,

It looks like you have a syntax error in your icinga.cfg file. This is hinted by this line in the error output:

     : Unexpected token or statement in file
    '/usr/local/icinga/etc/conf.d/icinga.cfg' on line 18.


Please provide that configuration file so we can tell you where that is.

vim /usr/local/icinga/etc/icinga.cfg


# ICINGA.CFG - Sample Main Config File for Icinga
#
# 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.
#
##############################################################################


# 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/icinga/var/icinga.log ( this is only line number 18)

# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# Hint: Check the docs/wiki on how to monitor remote hosts with different
# transport methods and plugins

# You can tell Icinga to process all config files (with a .cfg
# extension) in a particular directory recursively by using the
# cfg_dir directive as shown below with conf.d

cfg_dir=/usr/local/icinga/etc/conf.d


Thanks,
Joel

From: Khaja Aziz <[email protected] <mailto:[email protected]>> Reply-To: Khaja Aziz <[email protected] <mailto:[email protected]>>, "[email protected] <mailto:[email protected]>" <[email protected] <mailto:[email protected]>>
Date: Friday, March 1, 2013 1:57 PM
To: "[email protected] <mailto:[email protected]>" <[email protected] <mailto:[email protected]>>
Subject: [icinga-users] .CONFIG ERROR! Start aborted icinga

Hello Team,


 we are facing this issue .can u help us on this issue...
  root@107:/usr/local/icinga/etc# service icinga start
Running configuration check...CONFIG ERROR! Start aborted. See /usr/local/icinga/var/icinga.chk for details.

 Processing object config directory '/usr/local/icinga/etc/conf.d'...
Processing object config file '/usr/local/icinga/etc/conf.d/icinga.cfg'... : Unexpected token or statement in file '/usr/local/icinga/etc/conf.d/icinga.cfg' on line 18.
   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 definitions. If you are upgrading from a previous version of Icinga, 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 and the Changelog CHANGES section as well to find
     out what has changed.


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to