Issues with NRPE Monitoring for a Linux Server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Issues with NRPE Monitoring for a Linux Server

Post 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,
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Issues with NRPE Monitoring for a Linux Server

Post 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!
Former Nagios employee
https://www.mcapra.com/
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: Issues with NRPE Monitoring for a Linux Server

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Issues with NRPE Monitoring for a Linux Server

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: Issues with NRPE Monitoring for a Linux Server

Post by venturegardengroup »

Hello XI Support,

Please find outputs attached.

Kind regards,

HNI
VGG
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Issues with NRPE Monitoring for a Linux Server

Post 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.
Former Nagios Employee
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: Issues with NRPE Monitoring for a Linux Server

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues with NRPE Monitoring for a Linux Server

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
venturegardengroup
Posts: 62
Joined: Tue Jun 28, 2016 10:11 am

Re: Issues with NRPE Monitoring for a Linux Server

Post by venturegardengroup »

Please find the required output attached.

Regards,
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issues with NRPE Monitoring for a Linux Server

Post by lmiltchev »

Can you also run the following command on the Nagios XI server and show the output?

Code: Select all

netstat -nr
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked