NRPE not working as expected in cent os 8
sowmian opened this issue · 2 comments
[root@detomkgwpdev01 nagios]# service nrpe status
Redirecting to /bin/systemctl status nrpe.service
● nrpe.service - Nagios Remote Plugin Executor
Loaded: loaded (/usr/lib/systemd/system/nrpe.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-09-22 17:46:27 EDT; 5 days ago
Docs: http://www.nagios.org/documentation
Main PID: 43847 (code=exited, status=1/FAILURE)
Sep 22 17:46:27 detomkgwpdev01.onemagnify.corp systemd[1]: Started Nagios Remote Plugin Executor.
Sep 22 17:46:27 detomkgwpdev01.onemagnify.corp systemd[1]: nrpe.service: Main process exited, code=exited, status=1/FAILURE
Sep 22 17:46:27 detomkgwpdev01.onemagnify.corp systemd[1]: nrpe.service: Failed with result 'exit-code'.
[root@detomkgwpdev01 nagios]#
Hi, thanks for reporting this. Does the NRPE daemon have logging enabled on this system? If so, does it have any error messages?
As an aside, for newer distributions I'd recommend using a newer agent like NCPA. If/when we do future releases of NRPE, it will mostly be for handling security issues in legacy environments.
This looks to be a problem reported in redhat bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1898469
Problem is, that for network.target not always all interfaces are up. This is done in network-online.target.
Also there is another issue reported against nrpe.service file:
https://bugzilla.redhat.com/show_bug.cgi?id=1806659
Can you please apply both changes upstream?
Let me know, if you need a patch.
Thank you.