NRPE problem


#1

Hi,
I have this problem.
I have installe nrpe on client linux
I have copied nrpe files on /usr/local/nagios
There are configuration files:
/etc/services:

nrpe 5666/tcp # NRPE

/usr/local/nagios/nrpe.cfg:

server_port=5666
#server_address=192.168.1.1
allowed_hosts=127.0.0.1,(ip of nagios server)
nrpe_user=nagios
dont_blame_nrpe=0
debug=0
command_timeout=60
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_load1]=/usr/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1
command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1
command[check_disk3]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/cciss/c0d0p2
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200

/etc/xinetd.d/nrpe:

default: on

description: NRPE

service nrpe
{
flags = REUSE
socket_type = stream
wait = no
user = nagios
server = /usr/local/nagios
server_args = -c /usr/local/nagios --inetd
log_on_failure += USERID
disable = no
}

After restart xinetd with /etc/init.d/xinetd restart
the result of
more /var/log/messages |grep xinetd

Sep 27 15:50:39 cicici xinetd: xinetd shutdown succeeded
Sep 27 15:50:39 cicici xinetd: xinetd startup succeeded
Sep 27 15:50:40 cicici xinetd[22719]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.
Sep 27 15:50:40 cicici xinetd[22719]: Started working: 4 available services

and
[[email protected] nagios]# ps -ef |grep nrpe
root 22793 22760 0 15:53 pts/3 00:00:00 grep nrpe

On Server Nagios I launch the command:
servnagios libexec # ./check_nrpe -H cicici -p 5666 -c check_load -a 30 90
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

And the result of
[[email protected] nagios]#more /var/log/messages |grep xinetd

Sep 27 15:50:39 cicici xinetd: xinetd shutdown succeeded
Sep 27 15:50:39 cicici xinetd: xinetd startup succeeded
Sep 27 15:50:40 cicici xinetd[22719]: xinetd Version 2.3.12 started with libwrap loadavg options compiled in.
Sep 27 15:50:40 cicici xinetd[22719]: Started working: 4 available services
Sep 27 15:55:26 cicici xinetd[22826]: execv( /usr/local/nagios ) failed: Permission denied (errno = 13)

Please Help ME!!!


#2

RESOLVED !
thi line is incorrect:
server = /usr/local/nagios
server_args = -c /usr/local/nagios --inetd

correct with:
server = /usr/local/nagios/nrpe
server_args = -c /usr/local/nagios/nrpe.cfg --inetd
:frowning:
bye!!!