nrdp and timing out

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.
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: nrdp and timing out

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post 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
$ 
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrdp and timing out

Post 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?

Code: Select all

getenforce
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrdp and timing out

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post 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
$
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrdp and timing out

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nrdp and timing out

Post by jssingh »

no ... I changed the group and it worked! Thank you!!!
Locked