|
From: Marc P. <ma...@en...> - 2005-05-15 15:24:07
|
> -----Original Message----- > From: jim tate [mailto:mic...@sb...] > 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 >=20 > 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 |