Monitoring of Linux Host--Could not complete SSL handshake

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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by mcapra »

You might try following the official documentation:
https://assets.nagios.com/downloads/nag ... _Agent.pdf

Here's some that includes the stock Nagios plugins as well:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I realize the title says "Nagios XI", but much of the same steps are valid for Nagios Core.
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by kyang »

Thanks @mcapra!

He's right, try following our official documentation if you're going to monitor 100 Linux servers.
It should work just fine, but if not you could create another thread.

Glad to hear it's working though! Do you have any more questions or can we close this thread?
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by amitgupta19 »

@mcapra

I tried to follow the steps mentioned in the Knowledge Base Article.

But getting the below Error:
[trathi@xxxxxxx nrpe-3.2.1]$ sudo make install
cd ./src/; make install
make[1]: Entering directory `/tmp/nrpe-3.2.1/src'
make install-plugin
make[2]: Entering directory `/tmp/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
/usr/bin/install: cannot stat `check_nrpe': No such file or directory
make[2]: *** [install-plugin] Error 1
make[2]: Leaving directory `/tmp/nrpe-3.2.1/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/nrpe-3.2.1/src'
make: *** [install] Error 2
[trathi@xxxxxxx nrpe-3.2.1]$


Please Suggest what to do?
kyang

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by kyang »

@amitgupta19,

Are you only trying to download the plugin? What OS are you downloading NRPE on?

Did you download the Prerequisites?
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by amitgupta19 »

I am trying to monitor the remote system which is installed with "Oracle Linux".

Can you tell me that do i need to install the following as per the links in the previous reply from mcapra.
1) Install the NRPE Agent.
2) Install the Nagios Plugin.

Is the above 2 sufficient to monitor the Linux Server?
kyang

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by kyang »

Yes, if you wanted to use the Nagios Plugins with the NRPE agent to monitor Oracle Linux.

Here's the guide for installing NRPE on Oracle Linux.
https://support.nagios.com/kb/article.p ... acle_Linux
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by amitgupta19 »

i am able to install the Nagios Plugin Successfully

But when i try to install the NRPE it is giving the following Error:

[XXXXX@labwlap1 nrpe-3.2.1]$ sudo make install
cd ./src/; make install
make[1]: Entering directory `/tmp/nrpe-3.2.1/src'
make install-plugin
make[2]: Entering directory `/tmp/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
/usr/bin/install: cannot stat `check_nrpe': No such file or directory
make[2]: *** [install-plugin] Error 1
make[2]: Leaving directory `/tmp/nrpe-3.2.1/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/tmp/nrpe-3.2.1/src'
make: *** [install] Error 2
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by cdienger »

It looks like you may have missed the make all step. Follow https://support.nagios.com/kb/article.p ... acle_Linux again making sure run all of the commands in the order listed.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by amitgupta19 »

I have run the commands in the same order as mentioned in the URL.

Please find attached the command list along with the error.
Attachments
nagios-error-after-makeall.txt
(12.13 KiB) Downloaded 389 times
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Monitoring of Linux Host--Could not complete SSL handsha

Post by cdienger »

That appears to have worked. No errors are seen this time when the sudo make install command was run.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked