New Installation - Ubuntu 11.10: 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
tknutson
Posts: 6
Joined: Fri Apr 27, 2012 11:25 am

New Installation - Ubuntu 11.10: nagios.cfg error

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

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

Post 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
tknutson
Posts: 6
Joined: Fri Apr 27, 2012 11:25 am

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

Post by tknutson »

Thanks that worked. I had to issue the same 2 commands on the "var" directory as well. Nagios is now running.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

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

Post by agriffin »

Glad I could help!
Locked