Nagios.cfg error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
zuehaaro
Posts: 5
Joined: Wed May 11, 2016 8:15 pm

Nagios.cfg error

Post 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.
mankomal
Posts: 9
Joined: Thu May 12, 2016 6:32 am

Re: Nagios.cfg error

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios.cfg error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked