Permission denied nrpe error

Marc Powell marc at ena.com
Tue Nov 16 20:27:08 CET 2004



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Mukarram Syed
> Sent: Tuesday, November 16, 2004 12:56 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Permission denied nrpe error
> 
> Hi,
> I am getting the following error when I run telnet to
> port 5666 to use nrpe:
> 
> [root at triton libexec]# telnet triton 5666
> Trying 10.0.250.100...
> Connected to triton (10.0.250.100).
> Escape character is '^]'.
> Connection closed by foreign host.
> 
> In the /var/log/messages I am getting this:
> 
> Nov 16 13:49:30 triton xinetd[30641]: execv(
> /usr/local/etc/nagios/libexec ) failed: Permission
> denied (errno = 13)

Why are you trying to run a directory? It should be a program.

> 
> This is the nrpe file in the /etc/xinetd.d directory:
> # default: on
> # description: NRPE
> service nrpe
> {
>                 disable         = no
>                 id              = nrpe
>                 socket_type     = stream
>                 flags           = REUSE
>                 protocol        = tcp
>                 wait            = no
>                 user            = root
>                 server          =
> /usr/local/etc/nagios/libexec
>                 server_args     = -i
> /usr/local/etc/nagios/libexec
>                 log_on_failure  += USERID
> }

Ah, that's why. Per the NRPE documentation you should probably be using
something like
		server = /path/to/nrpe
		server_args = -i /path/to/nrpe.cfg

Also, running nrpe as root probably isn't a good idea. Try the user that
nagios runs as.

> 
> Nrpe is listening on port 5666:
> 
> [root at triton poseidon]# netstat -a |grep nrpe
> tcp        0      0 *:nrpe                  *:*
>              LISTEN
> 

Actually, xinetd is listening and only on a connection attempt will it
pass it off to nrpe.

 
> Can any of you please tell me what's wrong.  Any
> suggestions why I am getting permission denied errors.

Yes, see above.

--
Marc 



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list