BAD CHECK RESULTS DIR - JSON CHECK RESULTS TEST

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
mwerne01
Posts: 1
Joined: Tue Jan 23, 2018 4:40 pm

BAD CHECK RESULTS DIR - JSON CHECK RESULTS TEST

Post 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 .
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: BAD CHECK RESULTS DIR - JSON CHECK RESULTS TEST

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked