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

Cabrera, Nestor (Contractor) CabreraN at southcom.disa.mil
Thu Jun 19 21:56:10 CEST 2003


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