Strange Error w/ cgi.cfg

Stephan Janosch Stephan.Janosch at interface-business.de
Fri Nov 19 10:16:41 CET 2004


Westlake, Simon wrote:
> Hi,
> 
> I'm setting up Nagios 1.2 for the first time and am having a strange error.
> 
> I originally installed Nagios+NAGAT and created my configuration files (nagios.cfg and cgi.cfg). All files are installed to the default location (/usr/local/nagios/etc)
> 
> After generating the files, I ran nagios -v and it said there was an error in my cgi.cfg (specifically Error: Unexpected token or statement in file '/usr/local/nagios/etc/cgi.cfg' on line 8.)
> 
> Thinking perhaps Nagat was creating the file out of order, I tried re-creating the file by hand following the guidelines. Same error.
> 
> As a last resort, I tried doing make install-config and modifying cgi.cfg-sample (not changing line 15 at all, the default was correct.) I now get:
> 
> Error: Unexpected token or statement in file '/usr/local/nagios/etc/cgi.cfg' on line 15.
> 
> Searching the archives, it appears someone else having this issue modified the sample config to get around it. Not working for me.
> 
> Anyone have any other ideas?

Perhaps the error is somewhere above and nagios realizes it in line 15?

Just like a forgotten "," in a programming language.



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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