Page 1 of 4

Issues with NRPE Monitoring for a Linux Server

Posted: Tue Jun 28, 2016 11:23 am
by venturegardengroup
Hello Support,

I am trying to monitor some in-house linux servers for the first time. I have followed the procedure on https://assets.nagios.com/downloads/nag ... 1452760324 successfully. However, after completing the setup on Nagios XI, I am getting ” CHECK_NRPE: Error - Could not complete SSL handshake” on all NRPE services. Could this be an error in the setup process? Find snapshot attached.

In addition I will like to monitor the following services on the same server:

- Connectivity - LAN
- Connectivity - WAN
- Disk:
- Opsview Agent
- Runaway Processes
- SSH processes
- Total files in /var/log
- Unix Load Average
- Unix Memory
- Unix Swap
- Zombie Processes

Please help.

Regards,

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Tue Jun 28, 2016 11:27 am
by mcapra
Have you reviewed this common solutions document?
https://assets.nagios.com/downloads/nag ... utions.pdf

Usually this is because, on the remote linux server, your Nagios XI server's IP address was not added to the list of allowed hosts. Check out pages 3 and 4 if you haven't tried this yet!

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Mon Jul 04, 2016 5:06 am
by venturegardengroup
Hello XI Support,

I have followed the the procedures outlined in the aspect of the document that is relevant to the error I am getting-"CHECK_NRPE: Error - Could Not Complete SSL Handshake".

On "Allowed Hosts":

I have listed and added the IP address of the Nagios server on the nrpe.cfg and the nxinetd configurations files respectively, but the issue persists.

On "SSL Not Compiled In":

I could not find the nrpe-2.14 file in the /tmp folder.

On "Xinetd Per Source Limit":

I have followed the procedure, but the issue persists.

Please advice. Thank you.

HNI, VGG

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Mon Jul 04, 2016 10:59 pm
by Box293
From your Nagios XI server execute these commands and provide the output:

Code: Select all

nmap -Pn -p T:5666 xxx
/usr/local/nagios/libexec/check_nrpe -H xxx
/usr/local/nagios/libexec/check_nrpe -H xxx -n
Where xxx is the IP address of the remote server.

On the remote server execute these commands and provide the output:

Code: Select all

ps -C xinetd
ps -C nrpe
tail -n 50 /var/log/messages
What operating system is running on the remote server?

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Thu Jul 07, 2016 5:10 am
by venturegardengroup
Hello XI Support,

Please find outputs attached.

Kind regards,

HNI
VGG

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Thu Jul 07, 2016 11:56 am
by rkennedy
Box293 wrote: What operating system is running on the remote server?
Could you please answer this?

Also, from your output I noticed -

Code: Select all

nmap -Pn -p T:5666 xxx

Starting Nmap 6.47 ( http://nmap.org ) at 2016-07-07 11:03 WAT
Failed to resolve "xxx".
WARNING: No targets were specified, so 0 hosts scanned.
Please replace 'xxx' with the IP you used for the other commands, and post the output once again. 'xxx' should be the IP of the client machine.

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Fri Jul 08, 2016 4:44 am
by venturegardengroup
Hello XI Support,

The OS running on the remote is Ubuntu - 3.19.0-49-generic #55~14.04.1-Ubuntu SMP.

See also the output requested below; sorry for the mistake:

[root@localhost ~]# nmap -Pn -p T:5666 197.253.1.248

Starting Nmap 6.47 ( http://nmap.org ) at 2016-07-08 10:35 WAT
Stats: 0:00:00 elapsed; 0 hosts completed (0 up), 0 undergoing Host Discovery
Parallel DNS resolution of 1 host. Timing: About 0.00% done
Nmap scan report for 197.253.1.248
Host is up (0.0045s latency).
PORT STATE SERVICE
5666/tcp open nrpe

Nmap done: 1 IP address (1 host up) scanned in 0.78 seconds
[root@localhost ~]#

Thanks.

HNI
VGG

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Fri Jul 08, 2016 10:57 am
by lmiltchev
Run the following commands, and show the output:

on the client

Code: Select all

ip addr
find / -name nrpe
cat /etc/xinetd.d/nrpe
/usr/local/nagios/bin/nrpe
service xinetd restart
on the nagios xi server

Code: Select all

ip addr

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Mon Jul 11, 2016 6:47 am
by venturegardengroup
Please find the required output attached.

Regards,

Re: Issues with NRPE Monitoring for a Linux Server

Posted: Mon Jul 11, 2016 9:19 am
by lmiltchev
Can you also run the following command on the Nagios XI server and show the output?

Code: Select all

netstat -nr