Error: Unexpected token or statement

Vincent Ngundi vincent at kenic.or.ke
Mon Nov 22 09:37:35 CET 2004


Hi All,
I'm new to nagios.

When I run nagios in debugging mode, I get the following error:

Error: Unexpected token or statement in file
'/usr/local/nagios/etc/nagios.cfg' on line 20.


What could be the problem? My main file (nagios.cfg) is as below:

#################start of nagios.cfg#########################
# 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=/var/nagios.log
                                                                                                                                                                       
# Vincent Ngundi
#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
.
.
.
.
.
.
.
.
.
.
.
.

Thanks in advance.

Vincent.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list