Syntax error in negios.cfg

Marc Powell marc at ena.com
Sun May 15 17:22:04 CEST 2005



> -----Original Message-----
> From: jim tate [mailto:mickeyboa at sbcglobal.net]
> Sent: Saturday, May 14, 2005 10:18 AM
> To: Marc Powell
> Subject: Re: [Nagios-users] Syntax error in negios.cfg


> >>
> >># /etc/nagios/nagios.cfg
> >>/etc/nagios/nagios.cfg: line 906: unexpected EOF while looking for
> >>matching `"'
> >>/etc/nagios/nagios.cfg: line 954: syntax error: unexpected end of
file
> >>
> >>
> >
> >So, I guess my next question is, are you trying to _run_ nagios.cfg
from
> >the command line? Is the # in '# /etc/nagios/nagios.cfg' your shell
> >prompt? That is the only way I can imagine you'd see errors such as
> >above.


> This is line 906 as in nagios.cfg.
> # This option controls whether or not "true" regular expression
> 
> I was running  /etc/nagios/nagios.cfg as 'root' from the command line.

Then that, of course, is your problem. Much like every configuration
file by almost every program, it's not meant to be run but rather read
from the program itself. This is pretty basic.

To actually start nagios, you'd typically use its init script. If you're
on a redhat based system then running 'service nagios start' will be
sufficient.  You can also run '/path/to/nagios/bin/nagios -d
/etc/nagios/nagios.cfg'

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
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