NRDP error

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.
Locked
lee62817
Posts: 8
Joined: Wed Jul 04, 2012 8:04 pm

NRDP error

Post by lee62817 »

i install nrdp on centos 6.3 nagios core 3.41

test api ok

Image

but i install nrdp on centos7 and nagios core 4.08

http://192.168.1.25/nrdp

show error :

Forbidden

You don't have permission to access /nrdp on this server.

Image

http error log :

[Tue Oct 21 09:37:27.268706 2014] [suexec:notice] [pid 1113] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' di$
[Tue Oct 21 09:37:27.409935 2014] [auth_digest:notice] [pid 1113] AH01757: generating secret for digest authentication ...
[Tue Oct 21 09:37:27.410972 2014] [lbmethod_heartbeat:notice] [pid 1113] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 21 09:37:28.202281 2014] [mpm_prefork:notice] [pid 1113] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 configured $
[Tue Oct 21 09:37:28.205389 2014] [core:notice] [pid 1113] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Oct 21 09:39:37.636837 2014] [authz_core:error] [pid 2352] [client 192.168.1.25:33926] AH01630: client denied by server configuration:$


please help me to fix this error

thanks
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRDP error

Post by tmcdonald »

Looks like an Apache misconfiguration. Please run the following commands and show their output:

Code: Select all

getenforce
cat /etc/httpd/conf.d/nrdp.conf
Former Nagios employee
lee62817
Posts: 8
Joined: Wed Jul 04, 2012 8:04 pm

Re: NRDP error

Post by lee62817 »

[root@localhost 桌面]# getenforce
Disabled
[root@localhost 桌面]# cat /etc/httpd/conf.d/nrdp.conf
<Directory "/usr/local/nrdp">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "NRDP"
# AuthType Basic
# AuthUserFile /usr/local/nrdp/htpasswd.users
# Require valid-user
</Directory>

Alias /nrdp "/usr/local/nrdp/server"
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRDP error

Post by tmcdonald »

Apache 2.4 handles authorization a bit differently:

http://httpd.apache.org/docs/2.4/upgrading.html

You will want to change these lines:

Code: Select all

Order allow,deny
Allow from all
to this:

Code: Select all

Require all granted
Former Nagios employee
lee62817
Posts: 8
Joined: Wed Jul 04, 2012 8:04 pm

Re: NRDP error

Post by lee62817 »

Thank You Very Much

it can work now
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRDP error

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked