[SOLVED] Nagios : Issues- (1)CHECK_NRPE: Error - Could not complete SSL handshake. (2) CHECK_NRPE: Socket timeout after 30 seconds. (3) Sync missed
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Nagios : Issues- (1)CHECK_NRPE: Error - Could not complete SSL handshake. (2) CHECK_NRPE: Socket timeout after 30 seconds. (3) Sync missed
Dear Friends
I have added some AIX servers in Nagios, Some of them are added but there services are showing below errors:
CHECK_NRPE: Socket timeout after 30 seconds.
CHECK_NRPE: Error - Could not complete SSL handshake.
When I execute /usr/local/nagios/libexec/check_nrpe -H 10.129.16.22
NRPE v2.12
But alerts not generating in database server. It only gives above error for some services
I have telnet 5666 in nagios server & AIX server both are connecting.
I have also added nagios server IP in allowed_hosts in nrpe.cfg file in AIX server.
I have tried to reconfigure some of these services but re configuring gives me sync missed error in frontend, Tried a lot Apply Configuration but still the same.
Dear Friends
I have added some AIX servers in Nagios, Some of them are added but there services are showing below errors:
CHECK_NRPE: Socket timeout after 30 seconds.
CHECK_NRPE: Error - Could not complete SSL handshake.
When I execute /usr/local/nagios/libexec/check_nrpe -H 10.129.16.22 NRPE v2.12
But alerts not generating in database server. It only gives above error for some services
I have telnet 5666 in nagios server & AIX server both are connecting.
I have also added nagios server IP in allowed_hosts in nrpe.cfg file in AIX server.
I have tried to reconfigure some of these services but re configuring gives me sync missed error in frontend, Tried a lot Apply Configuration but still the same. Freely ask any details required.
Did you try to look up your error?? You don't say what version/distro of Linux, or what you mean by "tried a lot apply configuration" means...we can't guess as to what you've done/tried unless you tell us.
Linux Version (Nagios Server)
2.6.32-358.2.1.el6.x86_64
Nrpe Version in nagios & client AIX server
NRPE v2.12
Telnet in nagios server-
telnet localhost nrpe
Trying ::1...
Connected to localhost (::1).
Escape character is '^]'.
Connection closed by foreign host.
Telnet in Client(AIX) server
telnet noifindb5 nrpe
Trying...
Connected to noifindb5.
Escape character is '^]'.
Connection closed.
Traceroute from client to Nagios server
traceroute -p 5666 Nagios Server
trying to get source for Nagios Server
source should be 10.129.18.101
traceroute to Nagios Server (Nagios Server) from 10.129.18.101 (10.129.18.101), 30 hops max
outgoing MTU = 1500
1 10.129.37.4 (10.129.37.4) 2 ms 1 ms 1 ms
2 172.16.64.5 (172.16.64.5) 3 ms 3 ms 3 ms
3 172.16.64.2 (172.16.64.2) 48 ms 50 ms 48 ms
4 Nagios Server (Nagios Server) 49 ms 49 ms 48 ms
[Fri Oct 14 11:34:34 2016] SERVICE ALERT: 10.129.16.161;Swap Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:34:34 2016] SERVICE ALERT: 10.129.16.161;/temp Disk Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:39:26 2016] SERVICE ALERT: noifindb7;/finidx1nandedc;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:44:33 2016] SERVICE ALERT: 10.129.16.161;Load;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:54:44 2016] SERVICE ALERT: 10.129.16.161;/temp Disk Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:54:44 2016] SERVICE ALERT: 10.129.16.161;/var Disk Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:59:36 2016] SERVICE ALERT: noifindb7;/usr;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 11:59:39 2016] SERVICE ALERT: 10.129.16.161;SSH Server;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:04:50 2016] SERVICE ALERT: 10.129.16.161;/var Disk Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:14:55 2016] SERVICE ALERT: 10.129.16.161;SSH Server;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:21:12 2016] SERVICE ALERT: 10.129.16.161;Open Files;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:26:15 2016] SERVICE ALERT: noifindb7;/findata1bhiwani;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:26:15 2016] SERVICE ALERT: noifindb7;/findata1parbani;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:31:19 2016] SERVICE ALERT: 10.129.16.161;Users;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:36:22 2016] SERVICE ALERT: noifindb7;/finidx1nandedc;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 12:47:25 2016] SERVICE ALERT: noifindb7;/archchamolic;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:06:18 2016] SERVICE ALERT: noifindb7;/findata1parbani;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:06:21 2016] SERVICE ALERT: noifindb7;/oranainitl;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:06:21 2016] SERVICE ALERT: noifindb7;/findata1chamolic;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:29:35 2016] SERVICE ALERT: noifindb7;/finidx1nandedc;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:34:41 2016] SERVICE ALERT: noifindb7;/oranainitl;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:44:45 2016] SERVICE ALERT: noifindb7;/findata1chamolic;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:54:42 2016] SERVICE ALERT: noifinaw1;/Memory Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 13:54:55 2016] SERVICE ALERT: 10.129.16.161;Memory Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 14:06:09 2016] SERVICE ALERT: noifindb7;/archbhiwani;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 14:15:04 2016] SERVICE ALERT: 10.129.16.161;Sendmail;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 14:19:59 2016] SERVICE ALERT: noifindb7;/finidx1nandedc;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 14:20:31 2016] SERVICE ALERT: noifindb7;/findata1chamolic;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 14:25:04 2016] SERVICE ALERT: noifinaw1;cpu usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 14:26:30 2016] SERVICE ALERT: noifindb7;/oragarhwal;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:01:29 2016] SERVICE ALERT: noifindb7;/archbhiwani;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:05:11 2016] SERVICE ALERT: 10.129.16.161;Swap Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:05:11 2016] SERVICE ALERT: 10.129.16.161;/temp Disk Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:05:11 2016] SERVICE ALERT: noifindb7;/findata1parbani;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:05:11 2016] SERVICE ALERT: noifindb7;/findata1andaman;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:10:15 2016] SERVICE ALERT: noifindb7;/orausnagar;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:10:15 2016] SERVICE ALERT: noifindb7;/usr;CRITICAL;HARD;2;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:10:19 2016] SERVICE ALERT: 10.129.16.161;Sendmail;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
[Fri Oct 14 15:30:12 2016] SERVICE ALERT: noifinaw3;Memory Usage;CRITICAL;HARD;5;CHECK_NRPE: Error - Could not complete SSL handshake.
I have added nagios IP in allowed_host in client server.
The thing i am not understanding is if i execute below test command then it won't show any SSL error:-
/usr/local/nagios/libexec/check_nrpe -H 10.129.18.101
NRPE v2.12
But logs & alerts are showing SSL connection error.
Any suggestions ??
check_nrpe -H 10.129.18.101 -s is not working
so used check_nrpe -H 10.129.18.101 -n & got below o/p
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
SSL handshak issue is there but same service which gives this error also gives alert after 10 minutes:- (E.g)
check_nrpe -H 10.129.18.101 -s is not working
so used check_nrpe -H 10.129.18.101 -n & got below o/p
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
SSL handshak issue is there but same service which gives this error also gives alert after 10 minutes:- (E.g)
Can you please guide how to check the nrpe with or without SSL support in AIX server
You have been 'guided' to the instructions, and handed a PDF that tells you how to fix these things. You have either not read it or not followed it. Can't 'guide you' further.
The SSL handshake isn't working, and the check_nrpe is saying so. The entire section III in the PDF that we not only looked up for you but handed TO you, tells you how to check/fix this error. You *STILL* haven't said if you've followed all the steps in it...we can't guess as to what you've done, but everything you've TOLD US indicates you haven't.
I have followed the steps mentioned in that sheet, I was even refereed that sheet before posting in this form.
As per the pdf these things are already done in my AIX Server :
nano /usr/local/nagios/etc/nrpe.cfg
allowed_hosts = Nagios Server IP
xinetd is not installed in AIX server.
Below settings I dnt have in my AIX server, So I am not getting how to link Nrpe & SSL.
***SSL Not Compiled In:
The other common cause is that NRPE was not compiled with ssl enabled. To recompile NRPE with ssl support, browse to your NRPE
source directory (usually in /tmp/nrpe-2.14 if you followed the compiling NRPE from source document) and re-compile using the –
enable-ssl
flag
:
cd /tmp/nrpe-2.14
./configure --enable-ssl
make all
make install***
I have followed the steps mentioned in that sheet, I was even refereed that sheet before posting in this form.
As per the pdf these things are already done in my AIX Server :
nano /usr/local/nagios/etc/nrpe.cfg
allowed_hosts = Nagios Server IP
...and you STILL mention nothing about putting it in the /etc/hosts file.....which is ALSO in that sheet, or did you miss it?
Quote:
xinetd is not installed in AIX server.
Below settings I dnt have in my AIX server, So I am not getting how to link Nrpe & SSL.
***SSL Not Compiled In:
The other common cause is that NRPE was not compiled with ssl enabled. To recompile NRPE with ssl support, browse to your NRPE
source directory (usually in /tmp/nrpe-2.14 if you followed the compiling NRPE from source document) and re-compile using the –
enable-ssl
flag
:
cd /tmp/nrpe-2.14
./configure --enable-ssl
make all
make install***
...and not telling us you didn't compile SSL in is a huge problem. How, exactly, do you think you can use SSL, if you DON'T HAVE IT??? Again, read the instructions, and follow them. They TELL YOU how to compile NRPE with SSL.
Also removed all my monitoring parameters from AIX servers and re-added it and restart the nrpe,xinetd process in AIX and Nagios server solved my issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.