NRPE

Ranga Nathan RNathan at baxglobal.com
Thu Sep 22 19:09:08 CEST 2005


When I  have problems with nrpe (say in a new install), I debug it using
this command running on the nagios server.
/usr/local/nagios/libexec/check_nrpep  -H 172.24.6.115  -c check_services
-t 500  -d  -f /etc/nagios/check_nrpep.cfg


__________________________________________
Ranga Nathan / CSG
Systems Programmer - Specialist; Technical Services;
BAX Global Inc. Irvine-California
Tel: 714-442-7591   Fax: 714-442-2840



                                                                           
                 "Alloo,                                                   
                 Vincent"                                                  
                 <v-alloo at ti.c                                          To 
                 om>                   "Matt Wells" <chroot at wells.vg>,     
                                       "Jonathan Carpenter"                
                 Sent by:              <jonathan.carpenter at gmail.com>,     
                 nagios-users-         "Nagios-Users-List"                 
                 admin at lists.s         <nagios-users at lists.sourceforge.net 
                 ourceforge.ne         >                                   
                 t                                                      cc 
                                                                           
                                                                   Subject 
                 09/19/2005            RE: [Nagios-users] NRPE             
                 01:12 AM                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




This config works on my box (RHEL3.0U2):

% cat /etc/xinetd.d/nrpe
# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
#       consequently, for the rsh(1) program.  The server provides \
#       remote execution facilities with authentication based on \
#       privileged port numbers from trusted hosts.
service nrpe
{
        flags           = REUSE
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = nagios
        log_on_failure          += USERID
        server                  =  /apps/nagios/nrpe/nrpe
        server_args             =  -c /db/sysadmin/nagios/nrpe.cfg --inetd
}

Regards,


Vincent Alloo
TI France Design Systems Operations Manager
Europe, Middle East and Africa IT Services
Texas Instruments France

E-Mail: v-alloo at ti.com
Phone: +33 4 93 22 26 97
Mobile: +33 6 82 13 00 80

From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Matt Wells
Sent: Sunday, September 18, 2005 12:38 AM
To: Jonathan Carpenter; Nagios-Users-List
Subject: Re: [Nagios-users] NRPE

I never got it working in xinet.d I ended up just tossing it in as a daemon
because it was so much easier.

/usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d

I'm still getting the error for SSL though.. can not complete handshake.

----- Original Message -----
Subject: [Nagios-users] NRPE
From:  Jonathan Carpenter <jonathan.carpenter at gmail.com>
To: "Nagios-Users-List" <nagios-users at lists.sourceforge.net>
Date: 17-09-2005 13:26

I have installed nagios and configured nagios on one server to monitor
several servers with the check_ping plugin. Everything works great now I
have installed NRPE on one of the remote servers running Fedora 4. I have
edited /etc/services and added the following

nrpe     5666/tcp     # NRPE

and created a file in /etc/xinetd.d/ called nrpe the contents in it are

 # default: on
 # description: NRPE
 service nrpe
 {
         flags           = REUSE
         socket_type     = stream
         wait            = no
         user            = nagios
         server          = /home/nagios/nrpe
         server_args     = -c /home/nagios/nrpe --inetd
         log_on_failure  += USERID
         disable         = no
  only_from       =  1.2.3.4 <-- ip to nagios server
 }
  When I run /etc/rc.d/init.d/xinetd restart I get these errors in
/var/log/messages
Sep 17 02:56:19 db1 xinetd: xinetd startup succeeded
Sep 17 02:56:19 db1 xinetd[18797]: bind failed (Address already in use
(errno = 98)). service = nrpe
Sep 17 02:56:19 db1 xinetd[18797]: Service nrpe failed to start and is
deactivated.
Sep 17 02:56:19 db1 xinetd[18797]: xinetd Version 2.3.13 started with
libwrap loadavg options compiled in.
Sep 17 02:56:19 db1 xinetd[18797]: Started working: 0 available services

   Any help would be greatly appreciated.
--
Jonathan Carpenter



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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