Page 1 of 1

BAD CHECK RESULTS DIR - JSON CHECK RESULTS TEST

Posted: Tue Jan 23, 2018 9:19 pm
by mwerne01
Hi, I have deployed Nagios Core 4.3.4 on CentOS 7. I then deployed NRDP 1.5.1 and have been trying to get it configured following the instructions as posted here https://support.nagios.com/kb/article/n ... tml#CentOS

I get to the portion to test as posted here https://support.nagios.com/kb/article/n ... .html#TEST

When I submit the JSON check result test I keep receiving BAD CHECK RESULTS DIR.

The check results path as indicated in nagios.cfg and config.inc.php, /usr/local/nagios/var/spool/checkresults, does exist. I far as I an tell the user nagios and the user apache have permissions to this folder.

Can't seem to figure out why the error message?

Any help would be appreciated .

Re: BAD CHECK RESULTS DIR - JSON CHECK RESULTS TEST

Posted: Wed Jan 24, 2018 4:27 pm
by tgriep
The permissions for the checkresults folder may be correct but if the permissions for any of the subfolders is incorrect, that would cause the same error.
Also, make sure the nagios user and the apache user account is in the nagios group.
To check that, run this command

Code: Select all

grep nag /etc/group
And you should see a simular output as below.

Code: Select all

nagios:x:1000:apache,nagios
Take a look at the Apache log files for any errors that could help troubleshoot this.