Error Configure Client Nagios. in Oracle Linux 6.5
Posted: Thu Aug 17, 2017 1:18 pm
I have problems configuring the nagios client on my server in Oracle Linux 6.5
Server Nagios 172.22.175.30
#######################################
root@ ~]# /usr/local/nagios/libexec/check_nrpe -H 172.24.1.29
CHECK_NRPE: Error - Could not complete SSL handshake.
You have new mail in /var/spool/mail/root
The telnet result is
[root@ ~]# telnet 172.24.1.29 5666
Trying 172.24.1.29...
Connected to 172.24.1.29.
Escape character is '^]'.
Connection closed by foreign host.
You have mail in /var/spool/mail/root
#######################################
#######################################
Server Client 172.24.1.29
The configuration for
/etc/xinetd.d/nrpe is
##################
#default: on
#description: NRPE (Nagios Remote Plugin Executor)
service nrpe {
disable = no
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = nagios = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
only_from = 172.22.175.30 127.0.0.1
}
#######
###########
The log result
##################
(root@ -1# tail -f /var/log/messages
Aug 17 12:41:56 xinetd(310211: 31021 (init_services) no services. Exiting...
Aug 17 12:42:24 xinetd(271901: START: nrpe pid=31085 from=::fiff:172.24.1.129
Aug 17 12:42:24 xinetd(310851: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:42:24 xinetd(271901: EXIT: nrpe status=0 pid=31085 duration=0(sec)
Aug 17 12:42:33 xinetd(271901: START: nrpe pid=31104 from=::fiff:172.24.1.129
Aug 17 12:42:33 xinetd(311041: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:42:33 xinetd(271901: EXIT: nrpe status=0 pid=31104 duration=0(sec)
Aug 17 12:43:01 xinetd(271901: START: nrpe pid=31163 from=::fiff:172.24.1.129
Aug 17 12:43:01 xinetd(311631: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:43:01 xinetd(271901: EXIT: nrpe status=0 pid=31163 duration=0(sec)
Aug 17 12:44:02 xinetd(271901: START: nrpe pid=31291 from=::fiff:172.24.1.129
Aug 17 12:44:02 xinetd(312911: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:44:02 xinetd(271901: EXIT: nrpe status=0 pid=31291 duration=0(sec)
##################
[root@~]# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
#######################################
Version Xinetd is 2.3.14
Version Nrpe
NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.15
nagios-plugins-2.1.3
The oracle linux firewall is already disabled.
Your help please
Server Nagios 172.22.175.30
#######################################
root@ ~]# /usr/local/nagios/libexec/check_nrpe -H 172.24.1.29
CHECK_NRPE: Error - Could not complete SSL handshake.
You have new mail in /var/spool/mail/root
The telnet result is
[root@ ~]# telnet 172.24.1.29 5666
Trying 172.24.1.29...
Connected to 172.24.1.29.
Escape character is '^]'.
Connection closed by foreign host.
You have mail in /var/spool/mail/root
#######################################
#######################################
Server Client 172.24.1.29
The configuration for
/etc/xinetd.d/nrpe is
##################
#default: on
#description: NRPE (Nagios Remote Plugin Executor)
service nrpe {
disable = no
flags = REUSE
socket_type = stream
port = 5666
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nrpe
server_args = nagios = -c /usr/local/nagios/etc/nrpe.cfg --inetd
log_on_failure += USERID
only_from = 172.22.175.30 127.0.0.1
}
#######
###########
The log result
##################
(root@ -1# tail -f /var/log/messages
Aug 17 12:41:56 xinetd(310211: 31021 (init_services) no services. Exiting...
Aug 17 12:42:24 xinetd(271901: START: nrpe pid=31085 from=::fiff:172.24.1.129
Aug 17 12:42:24 xinetd(310851: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:42:24 xinetd(271901: EXIT: nrpe status=0 pid=31085 duration=0(sec)
Aug 17 12:42:33 xinetd(271901: START: nrpe pid=31104 from=::fiff:172.24.1.129
Aug 17 12:42:33 xinetd(311041: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:42:33 xinetd(271901: EXIT: nrpe status=0 pid=31104 duration=0(sec)
Aug 17 12:43:01 xinetd(271901: START: nrpe pid=31163 from=::fiff:172.24.1.129
Aug 17 12:43:01 xinetd(311631: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:43:01 xinetd(271901: EXIT: nrpe status=0 pid=31163 duration=0(sec)
Aug 17 12:44:02 xinetd(271901: START: nrpe pid=31291 from=::fiff:172.24.1.129
Aug 17 12:44:02 xinetd(312911: FAIL: nrpe address from=::fiff:172.24.1.129
Aug 17 12:44:02 xinetd(271901: EXIT: nrpe status=0 pid=31291 duration=0(sec)
##################
[root@~]# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
#######################################
Version Xinetd is 2.3.14
Version Nrpe
NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.15
nagios-plugins-2.1.3
The oracle linux firewall is already disabled.
Your help please