Issue with send_nrdp
Re: Issue with send_nrdp
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]#
[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]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with send_nrdp
What are the permissions here
Code: Select all
ll /usr/local/nagios/var/spool/checkresultsRe: Issue with send_nrdp
Please find requested output
[root@LXFK0010 server]# ll /usr/local/nagios/var/spool/checkresults
total 0
[root@LXFK0010 server]#
[root@LXFK0010 server]# ll /usr/local/nagios/var/spool/checkresults
total 0
[root@LXFK0010 server]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with send_nrdp
Sorry I wanted the directory permissions
Also, post the output of the following
Code: Select all
ls -dl /usr/local/nagios/var/spool/checkresultsCode: Select all
sestatus
grep nag /etc/groupRe: Issue with send_nrdp
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]#
[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
nagiosuser
nagcmd
[root@XXXX checkresults]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with send_nrdp
Somehow your apache user is not added to the nagios group which is required
Run the following
Run the following
Code: Select all
usermod -a -G nagios apacheRe: Issue with send_nrdp
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
[root@XXXX checkresults]# usermod -a -G nagios apache
[root@XXXX checkresults]#
[root@XXXX checkresults]# grep nag /etc/group
nagios
nagiosuser
nagcmd
[root@XXXX checkresults]#
And I am getting still same error
ERROR: The NRDP Server said BAD CHECK RESULTS DIR
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with send_nrdp
One more permissions modification
Code: Select all
chmod u+s /usr/local/nagios/var/spool/checkresultsRe: Issue with send_nrdp
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]#
[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]#
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Issue with send_nrdp
Something is not adding up here.
Is this a Nagios XI install? What OS is it installed on?
Is this a Nagios XI install? What OS is it installed on?