Page 1 of 1

Nagios.cfg error

Posted: Wed May 11, 2016 8:18 pm
by zuehaaro
I am working on Nagios configuration for a class working in VMware Player 12 on Centos7. I am trying to use init.d/nagios start to start the daemon, but keep recieving an error on nagios.cfg line 18 which is where it specifies the log file. It states that there is an unexpected token or statement. log_file=/usr/local/nagios/var/nagios.log is the exact entry and the directory and file do exist. I have checked and this is the correct format (this was even the default format), but it still says there is an error with this line.

Re: Nagios.cfg error

Posted: Thu May 12, 2016 9:15 am
by mankomal
Hello

this is a same error I got in the morning when I installed Nagios for the first time, the error was due to white space in starting of the line if you remove it the error will go
cheers

Re: Nagios.cfg error

Posted: Thu May 12, 2016 12:23 pm
by lmiltchev
zuehaaro, try to start the nagios service, and show us the error that you are getting (the whole output). What guide/document did you use to install nagios?

Let us know if mankomal's suggestion helped.