here again after installing the nrpe and nagios-plugins again from sources on the remote host.
Well, if I perform the following command on the remote host:
/usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
But if I perform this command from the server:
/usr/lib/nagios/plugins/check_nrpe -H remote_host_ip
So I think this is good for the moment. Isn't it?
As regard the error on the remote host, as this guide says, I can try to issue the following command:
/usr/local/nagios/libexec/check_nrpe -n -H localhost
which gives me the message:
CHECK_NRPE: Error receiving data from daemon.
Well, this is because my config files only allow one server to talk to it. But even if I put also the localhost IP address in the allow from clause, it says connection refused. Anyway, maybe this is less important, since it is possible to successfully perform the test from the Nagios server.
This is OK:
# netstat -ant|grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
Now the remote host should be again at the initial conditions. I would like to know what should I check in order to solve the error in the first post.