Hi,
We are able to install nrpe using rpm and run the plugin remotely.
We are seeing nrpe is failed when we check the status from systemctl
[root@s93tl3101 nagios]# systemctl status nrpe
● nrpe.service - Nagios Remote Program Executor
Loaded: loaded (/usr/lib/systemd/system/nrpe.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-11-22 12:03:29 CET; 3min 20s ago
Docs:
http://www.nagios.org/documentation
Process: 5407 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d $NRPE_SSL_OPT (code=exited, status=0/SUCCESS)
Main PID: 5408 (code=exited, status=2)
Nov 22 12:03:29 s93tl3101 systemd[1]: Starting Nagios Remote Program Executor...
Nov 22 12:03:29 s93tl3101 systemd[1]: Started Nagios Remote Program Executor.
Nov 22 12:03:29 s93tl3101 systemd[1]: nrpe.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 22 12:03:29 s93tl3101 systemd[1]: Unit nrpe.service entered failed state.
Nov 22 12:03:29 s93tl3101 systemd[1]: nrpe.service failed.
[root@s93tl3101 nagios]#
But when we check for nrpe using ps command it is running.
[root@s93tl3101 nagios]# ps -ef | grep nrpe
nrpe 6102 1 0 12:06 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 9872 9068 0 13:15 pts/0 00:00:00 grep --color=auto nrpe
[root@s93tl3101 nagios]#
Kindly advice ?