Before running the chmod 775 on /opt I tried something specific...
I modified checkresults in /usr/local/nrdp/server/config.inc.php to $cfg["check_results_dir"]="/opt/nagios/var/spool/checkresults"; and it works fine and creates the results files...but using the symbolic embedded link path $cfg["check_results_dir"]="/usr/local/nagios/var/spool/checkresults"; it fails with the BAD CHECK RESULTS DIR
Symbolic links provide no permission bits and rely upon the underlying file permissions which makes me wonder what's actually happening here.
I tried issuing the `chmod 755 /opt` and then re-defining the checkresults path to include the symbolic link /usr/local/... but it still fails with the BAD CHECK RESULTS DIR
Since I cannot see the source code associated with how the write command is specifying the path of the write its really hard understanding what is really happening here...
Is there no way to place whatever process/function in debug mode to get a clear picture as to why its failing?
Or is there a specific log that might be reporting what the function is actually experiencing...I have looked in the standard nagios.log and apache logs to no avail.
I am unable to get it to work without setting it to /opt like you did, so you will need to change the locations that I mentioned previously to use /opt in the path. I've created a bug report here:
Outstanding...that is exactly what I was attempting to ascertain. This explains the failure to a tee.
Thanks every one for their responses and input...I appreciate you all helping me understand...