Unexpected token or statement error when runni ng Nagios w/ -v
Michael A. Carpenter
mikec at balmy.net
Thu Jun 19 22:09:26 CEST 2003
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...
Thanks
Mike
On Thursday 19 June 2003 14:56, Cabrera, Nestor (Contractor) wrote:
> Isn't line 2 in your file this:
>
> cfg_file=/usr/local/nagios/etc/checkcommands.cfg
>
> Check and see if you have this file and the commands are correct.
>
> > -----Original Message-----
> > From: Michael A. Carpenter [SMTP:mikec at balmy.net]
> > Sent: Thursday, June 19, 2003 3:11 PM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Unexpected token or statement error when
> > running Nagios w/ -v
> >
> > This is my first post.
> >
> > I have searched the FAQ and the list archives and cant find the answer
> > to this one...
> >
> > When running the following command:
> >
> > /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
> >
> > I get the following error:
> >
> > 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.
> >
> > Any help is greatly appreciated.
> >
> > Mike
> >
> >
> >
> > << File: nagios.cfg >>
-------------------------------------------------------
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