Page 3 of 3
Re: nrdp and timing out
Posted: Wed Apr 02, 2014 4:26 pm
by jssingh
oh sorry. I think I was unclear earlier. I can't get nrdp to work on any of the hosts. I did try nsca on one of the hosts and that worked.
But to answer your questions, no, all the hosts have the same config options.
Re: nrdp and timing out
Posted: Thu Apr 03, 2014 1:22 pm
by sreinhardt
Just to make sure, are your nagios.cmd locations the same as well?
Code: Select all
grep nagios.cmd /usr/local/nrdp/server/config.inc.php
Looks like core has it as here: /usr/local/nagios4/var/rw/nagios.cmd
Re: nrdp and timing out
Posted: Thu Apr 03, 2014 1:27 pm
by jssingh
yes:
Code: Select all
$ grep nagios.cmd /usr/local/nrdp/server/config.inc.php
$cfg["command_file"]="/usr/local/nagios4/var/rw/nagios.cmd";
$ ls -lgG /usr/local/nagios4/var/rw/nagios.cmd
prw-rw---- 1 0 Apr 3 11:25 /usr/local/nagios4/var/rw/nagios.cmd
$
Re: nrdp and timing out
Posted: Fri Apr 04, 2014 10:33 am
by scottwilkerson
What are these permissions
Code: Select all
ls -ld /usr/local/nagios4/var/spool/checkresults
ls -ld /usr/local/nagios4/var/spool
ls -ld /usr/local/nagios4/var
ls -ld /usr/local/nagios4
and is selinux enabled?
Re: nrdp and timing out
Posted: Mon Apr 07, 2014 2:02 pm
by jssingh
SELinux is disabled. I talked to other admins around here and was told that it is turned off intentionally. Is it necessary to have that enabled? I've also been asked to ask you the rationale behind using SELinux.
thanks!
Re: nrdp and timing out
Posted: Mon Apr 07, 2014 4:41 pm
by scottwilkerson
jssingh wrote: Is it necessary to have that enabled? I've also been asked to ask you the rationale behind using SELinux.
No, I was making sure it wasn't enabled and causing problems....
What are these permissions
Code: Select all
ls -ld /usr/local/nagios4/var/spool/checkresults
ls -ld /usr/local/nagios4/var/spool
ls -ld /usr/local/nagios4/var
ls -ld /usr/local/nagios4
Re: nrdp and timing out
Posted: Mon Apr 07, 2014 4:52 pm
by jssingh
No, I was making sure it wasn't enabled and causing problems....
ah. oops.
as usual, to keep with the requirements here, these are not the actual user/group names.
Code: Select all
$ ls -ld /usr/local/nagios4/var/spool/checkresults
drwxrwxr-x 2 nagios_user nagios_group 4096 Mar 31 14:50 /usr/local/nagios4/var/spool/checkresults
$ ls -ld /usr/local/nagios4/var/spool
drwxr-xr-x 3 nagios_user nrdp_group 4096 Oct 31 13:58 /usr/local/nagios4/var/spool
$ ls -ld /usr/local/nagios4/var
drwxrwxr-x 6 nagios_user nagios_group 4096 Apr 7 14:48 /usr/local/nagios4/var
$ ls -ld /usr/local/nagios4
drwxr-xr-x 9 nagios_user nagios_group 4096 Dec 9 15:26 /usr/local/nagios4
$
Re: nrdp and timing out
Posted: Mon Apr 07, 2014 6:39 pm
by scottwilkerson
Ok, your last post gave me a clue on what might be happening...
Is the user that apache runs under a member the your nagios_group, this being the same group assigned to the following directory?
Code: Select all
/usr/local/nagios4/var/spool/checkresults
Re: nrdp and timing out
Posted: Tue Apr 08, 2014 10:38 am
by jssingh
no ... I changed the group and it worked! Thank you!!!