Thursday, December 8, 2011

CHECK_NRPE: Error - Could not complete SSL handshake

Sponsored Links
You may get an error like this while configuring nrpe with nagios
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x
CHECK_NRPE: Error - Could not complete SSL handshake.
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
The problem is you didnt give the ip address in /etc/xinetd.d/nrpe



root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# vi /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
#       only_from       = 127.0.0.1
        only_from       = x.x.x.x 127.0.0.1  #give ip address of the server here(nagios server) and localhost
}
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# 

Now restart and check
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# vi /etc/xinetd.d/nrpe
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]#  service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.12
root@server1 [/opt/Nagios/Nagios_NRPE/nrpe-2.12]#
Thats it :)
Sponsored Links

No comments:

Post a Comment

Be nice. That's all.