Hi, I migrated a host from one network to another and subsequently had to change the IP address. Now, my check_nrpe commands return SSL error on the Nagios XI server:
Nov 13 15:50:54 redrad01 nrpe[28397]: Error: Network server getpeername() failure (107: Transport endpoint is not connected)
Nov 13 15:50:54 redrad01 nrpe[28397]: Error: Could not complete SSL handshake with : 5
Ping checks work fine, and I can confirm with tcpdump that the packets are getting to and from source and destination. The packet capture reveals that the 3-way handshake is happening, and then the Nagios XI server is sending a RST packet. I have tried deleting the old config and re-adding it back, but I still get the error.
kyang wrote:Hey ScottG, just checking in to see if your issue is resolved?
Did you have any more questions? Or did you figure this out?
I apologize. I have not circled back around to this yet. I can say that the troubleshooting tips in that link did not solve my issue. I need to do more looking at it though. I appreciate you checking in.
On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me. Respond back here so I know you sent it.
Profile Received! Share with the Support Team.
Last edited by kyang on Tue Nov 28, 2017 4:55 pm, edited 2 times in total.
Reason:Profile received!
kyang wrote:With that, could you send us a profile?
On the XI Home Page click "Admin" > "System Profile" --> "Download Profile" button
Save the profile.zip file and upload it here or PM me. Respond back here so I know you sent it.
[/quote]
I sent the profile.zip in a PM. Thanks again.
Last edited by Anonymous on Tue Nov 28, 2017 4:58 pm, edited 2 times in total.
Reason:Code blocks, sorry I was suppose to delete the nagios.cfg part. I got it with your profile. It was suppose to be nrpe.cfg
(Depending on your configuration).
*Notice how in the first case the IP address are separated by space but in the second case, they're separated by a comma.
After that you need to restart nrpe with either service nrpe restart or service xinetd restart.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
What happens when you run service nrpe status on the remote server? Do you get any errors? I've seen some old bug where nrpe.pid file would not get properly created/replaced. So if you're able to find nrpe.pid presumably located in /var/run/nagios/nrpe.pid, please delete it and restart NRPE. That should force nrpe to recreate this file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
What happens when you run service nrpe status on the remote server? Do you get any errors? I've seen some old bug where nrpe.pid file would not get properly created/replaced. So if you're able to find nrpe.pid presumably located in /var/run/nagios/nrpe.pid, please delete it and restart NRPE. That should force nrpe to recreate this file.
systemd says it's running and shows the log errors I mentioned in the OP.
[sgardne@redrad01 ~]$ sudo systemctl status nrpe
● nrpe.service - Nagios Remote Program Executor
Loaded: loaded (/usr/lib/systemd/system/nrpe.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2017-11-29 09:49:02 CST; 1h 19min ago
Docs: http://www.nagios.org/documentation
Process: 11883 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d $NRPE_SSL_OPT (code=exited, status=0/SUCCESS)
Main PID: 11884 (nrpe)
CGroup: /system.slice/nrpe.service
├─11884 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
├─12919 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
└─35127 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
Nov 29 09:49:02 redrad01.uark.edu systemd[1]: Starting Nagios Remote Program Executor...
Nov 29 09:49:02 redrad01.uark.edu nrpe[11884]: Starting up daemon
Nov 29 09:49:02 redrad01.uark.edu systemd[1]: Started Nagios Remote Program Executor.
Nov 29 09:49:02 redrad01.uark.edu nrpe[11884]: Server listening on 0.0.0.0 port 5666.
Nov 29 09:49:02 redrad01.uark.edu nrpe[11884]: Server listening on :: port 5666.
Nov 29 09:49:02 redrad01.uark.edu nrpe[11884]: Warning: Daemon is configured to accept command arguments from clients!
Nov 29 09:49:02 redrad01.uark.edu nrpe[11884]: Listening for connections on port 5666
Nov 29 09:49:02 redrad01.uark.edu nrpe[11884]: Allowing connections from: 127.0.0.1,10.7.2.37,130.184.253.9
Nov 29 09:50:10 redrad01.uark.edu nrpe[12117]: Error: Network server getpeername() failure (107: Transport endpoint is not connected)
Nov 29 09:50:43 redrad01.uark.edu nrpe[12219]: Error: Network server getpeername() failure (107: Transport endpoint is not connected)