ssl-error in nrpe plugin

Himanshu Shukla himanshus at webcentral.com.au
Mon Apr 4 04:11:10 CEST 2005


On Sun, 3 Apr 2005 10:31 pm, vivek sharma sharma wrote:
> Dear all,
>          I have installed nrpe on my nagios host and one client host.
>
> On Nagios Host:
> 1.)I compiled nrpe and copied the check_nrpe plugin to
> /usr/local/nagios/libexec/ directory
>
>
> On client host:
> 1.)I compiled the nrpe and then copied the nrpe.cfg in /etc/
> 2.)Also placed /etc/xinetd.d/nrpe and placed the user as root in it
> and the allowed hosts as the Nagios host 3.)Started the xinetd daemon
>
> Now i noticed two things:
> Firstly when i try to telnet client_host 5666 from nagios_host it
> gives following ################
> [root at nagios libexec]# telnet 203.187.192.44 5666
> Trying 203.187.192.44...
> Connected to 203.187.192.44 (203.187.192.44).
> Escape character is '^]'.
> Connection closed by foreign host.
> ################

If you are using tcpwrappers, double check if you have allowed nrpe 
access. Also check the 'only_from' parameter in the corresponding 
xinetd file.

>
> Secondly when i try to run the check_nrpe daemon from within the
> /usr/local/nagios/libexec/ directory in Nagios_host it gives:
> ################
> ./check_nrpe -H 203.187.192.44 -c check_load
>
> CHECK_NRPE: Error - Could not complete SSL handshake.
> ###############

From the FAQ, one of the causes might be different versions of the nrpe 
client and server.

>
> The copy of nrpe.cfg in client host is as follows:
> #################################
> server_port=5666
> command_timeout=60
> # The following examples use hardcoded command arguments...
>
> 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_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_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 ##################################
> The rest of the parameters in nrpe.cfg file are either not applicable
> b'cos i am using /etc/xinetd.d/nrpe or they are commented.
>
> Pls suggest.
>
> Thanks.
> Vivek.

-- 
Himanshu Shukla
Systems Engineer,  Unix and Network Team

Tel:    07 3230 7352
Mob:    0401 985 215
Email:  himanshus at webcentral.com.au

WebCentral Pty Ltd - 2004 Microsoft Global Hosting Service Provider of 
the Year - www.webcentral.com.au
A WebCentral Group Limited company (ASX: WCG) 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
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