NRDP failed test (BAD CHECK RESULTS DIR)

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.
Post Reply
Urien
Posts: 2
Joined: Tue Aug 02, 2022 5:23 am

NRDP failed test (BAD CHECK RESULTS DIR)

Post by Urien »

Hello!

We are new to Nagios and we are trying to use NCPA with NRDP to transport all the data.

We are stuck in a problem after installing Nagios Core + Plugins + NRDP Server. This is the guides we used:
Nagios Core + Plugins: https://support.nagios.com/kb/article/n ... tml#CentOS
NRDP Server: https://github.com/NagiosEnterprises/nrdp/releases
At the end of the NRDP installation you can go to http://youripaddress/nrdp and test your NRDP server. The webpage works well but when we test the JSON we got a BAD CHECK RESULTS DIR.

The main problem here is that the checkresults folder can't be written. There is some fix to do when this happen:
1º Add nagios and apache users to the nagios group
2º In NRDP 2.0.5 config file the group should be renamed from "nagcmd" to "nagios"
3º Activate the NRDP debug mode (witch can't write the debug folder either)

Checking the apache error log throws a "file_put_contents() failed to open stream: Permission denied" refering to the debug log file. This a permission problem but we do not know how to solve it and we think they are related.
We tried to set 777 on nagios and nrdp folder but the issue persist. We also tried different ownerships for the folders, no luck.

Any ideas? :(
Urien
Posts: 2
Joined: Tue Aug 02, 2022 5:23 am

Re: NRDP failed test (BAD CHECK RESULTS DIR)

Post by Urien »

We reinstalled everything and now it seems to work properly.

Thank you!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: NRDP failed test (BAD CHECK RESULTS DIR)

Post by gormank »

I think nagios recommends NCPA these days. I'm not sure whay you want to use NRDP and NCPA. I'm not saying it's incorrect, just that I don't understand the need.
Post Reply