Page 2 of 3
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 3:06 am
by bsivavani
Please find requested output
[root@XXXX mibs]# grep check_results_dir /usr/local/nrdp/server/config.inc.php
$cfg["check_results_dir"] = "/usr/local/nagios/var/spool/checkresults";
[root@XXXX mibs]#
[root@XXXX mibs]#
[root@XXXX mibs]# ll /usr/local/nrdp/server/config.inc.php
-rw-rw-r-- 1 nagios nagios 2759 Aug 22 14:23 /usr/local/nrdp/server/config.inc.php
[root@XXXX mibs]#
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 7:05 am
by scottwilkerson
What are the permissions here
Code: Select all
ll /usr/local/nagios/var/spool/checkresults
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 8:40 am
by bsivavani
Please find requested output
[root@LXFK0010 server]# ll /usr/local/nagios/var/spool/checkresults
total 0
[root@LXFK0010 server]#
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 9:05 am
by scottwilkerson
Sorry I wanted the directory permissions
Code: Select all
ls -dl /usr/local/nagios/var/spool/checkresults
Also, post the output of the following
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 9:45 am
by bsivavani
Please find the details
[root@XXXX checkresults]# ls -dl /usr/local/nagios/var/spool/checkresults
drwxrwsr-x. 2 nagios nagios 6 Oct 8 13:35 /usr/local/nagios/var/spool/checkresults
[root@XXXX checkresults]#
[root@XXXX checkresults]# sestatus
SELinux status: disabled
[root@XXXX checkresults]#
[root@XXXX checkresults]# grep nag /etc/group
nagios

45003:
nagiosuser

45006:
nagcmd

45007:nagios,apache,snmptt
[root@XXXX checkresults]#
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 10:14 am
by scottwilkerson
Somehow your apache user is not added to the nagios group which is required
Run the following
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 10:33 am
by bsivavani
Looks like after adding apache user to nagios group also I am getting same entries in /etc/group
[root@XXXX checkresults]# usermod -a -G nagios apache
[root@XXXX checkresults]#
[root@XXXX checkresults]# grep nag /etc/group
nagios

45003:apache
nagiosuser

45006:
nagcmd

45007:nagios,apache,snmptt
[root@XXXX checkresults]#
And I am getting still same error
ERROR: The NRDP Server said BAD CHECK RESULTS DIR
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 10:58 am
by scottwilkerson
One more permissions modification
Code: Select all
chmod u+s /usr/local/nagios/var/spool/checkresults
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 11:17 am
by bsivavani
No luck, getting the same error.
[root@XXXX checkresults]# ll -d /usr/local/nagios/var/spool/checkresults
drwsrwsr-x. 2 nagios nagios 6 Oct 8 16:14 /usr/local/nagios/var/spool/checkresults
[root@XXXX checkresults]#
Re: Issue with send_nrdp
Posted: Tue Oct 08, 2019 11:42 am
by scottwilkerson
Something is not adding up here.
Is this a Nagios XI install? What OS is it installed on?