December 20, 2017

Failed to start Nagios Remote Program Executor.


Here is the status of the :

[root@dw007backus upg0742]# systemctl status nrpe.service
● nrpe.service - Nagios Remote Program Executor
   Loaded: loaded (/usr/lib/systemd/system/nrpe.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2017-12-20 16:29:35 EET; 14s ago
  Process: 25385 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d $NRPE_SSL_OPT (code=exited, status=2)

Dec 20 16:29:35 systemd[1]: Starting Nagios Remote Program Executor...
Dec 20 16:29:35 systemd[1]: nrpe.service: control process exited, code=exited s...s=2
Dec 20 16:29:35 systemd[1]: Failed to start Nagios Remote Program Executor.
Dec 20 16:29:35 systemd[1]: Unit nrpe.service entered failed state.
Dec 20 16:29:35 systemd[1]: nrpe.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

How do i get this running. I have tried to restart

[root@dw007backus upg0742]# systemctl restart nrpe
Job for nrpe.service failed because the control process exited with error code. See "systemctl status nrpe.service" and "journalctl -xe" for details.

Your help is highly appreciated.



Answer to the question

Try to start the NRPE manually:

   /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d

Also, ensure that is not running with systemctl, with:

   ps -ef | grep nrpe 

If it runs, check from the Nagios server if all goes fine.

Your startup script may have an issue, or you may have some garbage characters in cfg or the /etc/sysconfig/nrpe.

Then, post the relevant output of journalctl -xe  , as well as your OS/disto and kernel.

FInally, check the /var/log/messages for any log records from nrpe (by default it uses that one).

Like  (4 likes)
Click Here!