I am very new at this, and the fix to my issue is simple.
I have just installed Ubuntu 11.10 on an Intel base PC. I have installed the LAMP server components. I have installed Nagios Core 3.3.1 and Nagios Plugins 1.4.15. I believe all of these components are correctly installed.
My issues is verfying the "nagios.cfg". I issue the command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and get the following response.
Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 465 (Check result path is not a valid directory)
Line 465 is as follows: check_result_path=/usr/local/nagios/var/spool/checkresults
The directory "/spool/checkresults" does not exist. I tried creating these directory and re-verifying, but then I run into permission errors.
I am hoping someone, can point me in the right direction. I did search the support forum, but didn't find this issue.
New Installation - Ubuntu 11.10: nagios.cfg error
Re: New Installation - Ubuntu 11.10: nagios.cfg error
Make that Nagios has read/write permissions on that directory:
Code: Select all
chown nagios:nagios /usr/local/nagios/var/spool/checkresults
chmod 755 /usr/local/nagios/var/spool/checkresultsRe: New Installation - Ubuntu 11.10: nagios.cfg error
Thanks that worked. I had to issue the same 2 commands on the "var" directory as well. Nagios is now running.
Re: New Installation - Ubuntu 11.10: nagios.cfg error
Glad I could help!