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
Error processing main config file!!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Error processing main config file!!
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?
If not you are going to need to create it and set the correct permissions
Does it exist?
Code: Select all
ls -ld /usr/local/nagios/var/spool/checkresultsCode: 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