Error Configure Client Nagios. in Oracle Linux 6.5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
terencegc
Posts: 2
Joined: Thu Aug 17, 2017 11:48 am

Error Configure Client Nagios. in Oracle Linux 6.5

Post by terencegc »

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
bolson

Re: Error Configure Client Nagios. in Oracle Linux 6.5

Post by bolson »

Hello terencegc,

Please provide me with the following information:

What host is 172.24.1.29
What host is 172.24.1.129
What host is 172.22.175.30

Also run the command like this and see what happens:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
terencegc
Posts: 2
Joined: Thu Aug 17, 2017 11:48 am

Re: Error Configure Client Nagios. in Oracle Linux 6.5

Post by terencegc »

What host is 172.24.1.29
Is the nagios client to monitor


What host is 172.24.1.129
It is not a server, does not exist


What host is 172.22.175.30

Is the nagios server that monitors



The result of the command to execute is
#######################################
root@ ~]#/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1
NRPE v2.15
#######################################
bolson

Re: Error Configure Client Nagios. in Oracle Linux 6.5

Post by bolson »

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)
##################
This is confusing to me... do you have a typo in your hosts file? why would these requests be reported to be coming from 172.24.1.129??
Locked