nrdp and timing out
Re: nrdp and timing out
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.
But to answer your questions, no, all the hosts have the same config options.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: nrdp and timing out
Just to make sure, are your nagios.cmd locations the same as well?
Looks like core has it as here: /usr/local/nagios4/var/rw/nagios.cmd
Code: Select all
grep nagios.cmd /usr/local/nrdp/server/config.inc.php
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.
Re: nrdp and timing out
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
$
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nrdp and timing out
What are these permissions
and is selinux enabled?
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
Code: Select all
getenforce
Re: nrdp and timing out
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!
thanks!
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nrdp and timing out
No, I was making sure it wasn't enabled and causing problems....jssingh wrote: Is it necessary to have that enabled? I've also been asked to ask you the rationale behind using SELinux.
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
ah. oops.No, I was making sure it wasn't enabled and causing problems....
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
$
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: nrdp and timing out
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?
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
no ... I changed the group and it worked! Thank you!!!