CHECK_NRPE: Error - Could not complete SSL handshake.

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
kalyanasundaram
Posts: 2
Joined: Mon Jul 14, 2014 6:12 am

CHECK_NRPE: Error - Could not complete SSL handshake.

Post by kalyanasundaram »

nagios GUI.JPG
Hi,

I have configured in centos using 3rd parties repos.

@Client machine
nrpe.cfg file
server_port=5666
allowed_hosts= 127.0.0.1,10.10.1.250

[root@localhost ~]# netstat -an | grep -i 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
tcp 0 0 :::5666 :::* LISTEN

[root@localhost ~]# /usr/lib/nagios/plugins/check_nrpe -H 10.10.1.42
CHECK_NRPE: Error - Could not complete SSL handshake

@Nagios server
vi /etc/nagios/nagios.cfg
## Default Linux Host Template ##
define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}

## Default
define host{
use linux-box ; Inherit default values from a template
host_name client42 ; The name we're giving to this server
alias CentOS 6 ; A longer name for the server
address 10.10.1.42 ; IP address of Remote Linux host
}
vi /etc/nagios/services.cfg
define service{
use generic-service
host_name client42
service_description CPU Load
check_command check_nrpe!check_load
}

define service{
use generic-service
host_name client42
service_description Total Processes
check_command check_nrpe!check_total_procs
}

define service{
use generic-service
host_name client42
service_description Current Users
check_command check_nrpe!check_users
}

define service{
use generic-service
host_name client42
service_description SSH Monitoring
check_command check_nrpe!check_ssh 10.10.1.42
}

define service{
use generic-service
host_name client42
service_description FTP Monitoring
check_command check_nrpe!check_ftp
}
define service{
use generic-service
host_name client42
service_description SIP Monitoring
check_command check_nrpe!check_sip
}
vi /etc/nagios/nagios.cfg
Added two lines
cfg_file=/etc/nagios/hosts.cfg
cfg_file=/etc/nagios/services.cfg

vi /etc/nagios/objects/commands.cfg
added below lines in this above file
###############################################################################################
#NRPE CHECK COMMAND
#
#Command to use NRPE to check remote host sytems
#################################################################################################

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

[root@localhost nagios]# telnet 10.10.1.42 5666
Trying 10.10.1.42...
Connected to 10.10.1.42.
Escape character is '^]'.

quit
quit
Connection closed by foreign host.

Note : Please find the attachment of screenshot there we can see three services are showing error..
Pleae help me to come out this problem.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by eloyd »

What happens if you do:

Code: Select all

[root@localhost ~]# /usr/lib/nagios/plugins/check_nrpe -H 10.10.1.42 -n
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_NRPE: Error - Could not complete SSL handshake.

Post by tmcdonald »

@kalyanasundaram, any word?
Former Nagios employee
Locked