Unexpected token or statement error when runni ng Nagios w/ -v

Rob Nelson rob at capband.net
Fri Jun 20 15:32:47 CEST 2003


At 03:09 PM 6/19/2003 -0500, Michael A. Carpenter wrote:
>The checkcommands.cfg file is in the etc directory.
>
>The really wierd thing is that if I use the nagios.cfg-sample file (with
>the exact same log_file line) it works...I have cut and pasted the line
>from the -sample file to the .cfg file and it doesnt work...


> > > Unexpected token or statement in file
> > > '/usr/local/nagios/etc/nagios.cfg' on
> > > line 2.
> > >
> > > This line is my log_file entry.  It reads:
> > >
> > > log_file=/usr/local/nagios/var/nagios.log
> > >
> > > I have checked and the directory exists, and nagios has permissions to
> > > the
> > >
> > > directory.  I have checked for "^M" characters and didnt find any.  I
> > > have
> > >
> > > attached the file.


Er, what's line 1 look like? What happens if you remove that line and put 
it at the end of the cfg file?


Rob Nelson
Network Administrator, Capitol Broadband
C: 919-369-1874
rob at capband.net 



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
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