Page 1 of 1

New Installation - Ubuntu 11.10: nagios.cfg error

Posted: Fri Apr 27, 2012 3:41 pm
by tknutson
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.

Re: New Installation - Ubuntu 11.10: nagios.cfg error

Posted: Fri Apr 27, 2012 4:18 pm
by agriffin
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/checkresults

Re: New Installation - Ubuntu 11.10: nagios.cfg error

Posted: Fri Apr 27, 2012 5:17 pm
by tknutson
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

Posted: Sat Apr 28, 2012 4:59 pm
by agriffin
Glad I could help!