Error processing main config file!!

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
kpavuluri
Posts: 1
Joined: Tue Feb 11, 2020 11:04 am

Error processing main config file!!

Post by kpavuluri »

Can any one help me to fix this problem!

website : https://www.nagios.org
Reading configuration data...
Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 453 (Check result path '/usr/local/nagios/var/spool/checkresults' is not a valid directory)
Error processing main config file!

I already check my directory to make sure that I have nagios.cfg in usr/local/nagios/etc
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error processing main config file!!

Post by scottwilkerson »

From the error it looks like you have your check_result_path set to /usr/local/nagios/var/spool/checkresults and the directory cannot be accessed

Does it exist?

Code: Select all

ls -ld /usr/local/nagios/var/spool/checkresults
If not you are going to need to create it and set the correct permissions

Code: Select all

mkdir -p /usr/local/nagios/var/spool/checkresults
chown nagios.nagios -R /usr/local/nagios/var/spool
chmod ug+rw -R /usr/local/nagios/var/spool
chmod g+s /usr/local/nagios/var/spool/checkresults
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked