Telnet Connecting and Connection Refused by foreign Host

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
martin09
Posts: 23
Joined: Thu Jul 09, 2015 2:16 am

Telnet Connecting and Connection Refused by foreign Host

Post by martin09 »

Hi,

i've been trying to monitor our ticketing system using nagios, however i keep on having trouble connecting to its NRPE port 5666.When i try telnet, Connection was automatically closed by foreign host. Do you have any ideas what's causing this?.

[root ~]# telnet xxx.xx.xxx.xx 5666
Trying xxx.xx.xxx.xx...
Connected to xxx.xx.xxx.xx.
Escape character is '^]'.
Connection closed by foreign host.

As per checking, nrpe is already installed on the machine i'm trying to monitor.I'm also getting an error checking its NRPE

[root libexec]# ./check_nrpe -H xxx.xx.xxx.xx
CHECK_NRPE: Error - Could not complete SSL handshake.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Telnet Connecting and Connection Refused by foreign Host

Post by rkennedy »

Did you install NRPE stand alone or through xinetd? Can you post the configuration file for us to look at?

When you run the command, what output do you see on the client machine in your /var/log/messages file? This is will NRPE will output to.
Former Nagios Employee
Locked