nagios-nrpe-server.service Active: failed

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
naveen4b3
Posts: 3
Joined: Wed May 08, 2019 6:05 am

nagios-nrpe-server.service Active: failed

Post by naveen4b3 »

naveen@cd:~$ systemctl status nagios-nrpe-server.service
● nagios-nrpe-server.service - Nagios Remote Plugin Executor
Loaded: loaded (/lib/systemd/system/nagios-nrpe-server.service; enabled; vend
Active: failed (Result: start-limit-hit) since Wed 2019-05-08 14:15:34 IST; 2
Docs: http://www.nagios.org/documentation
Process: 30252 ExecStopPost=/bin/rm -f /var/run/nagios/nrpe.pid (code=exited,
Process: 30245 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f $NRPE_OPTS
Main PID: 30245 (code=exited, status=0/SUCCESS)

May 08 14:15:34 cd nrpe[30245]: Server listening on :: port 5666.
May 08 14:15:34 cd nrpe[30245]: Listening for connections on port 5666
May 08 14:15:34 cd nrpe[30245]: Allowing connections from: 127.0.0.1, 192.168.1.
May 08 14:15:34 cd systemd[1]: Stopping Nagios Remote Plugin Executor...
May 08 14:15:34 cd nrpe[30245]: Caught SIGTERM - shutting down...
May 08 14:15:34 cd nrpe[30245]: Daemon shutdown
May 08 14:15:34 cd systemd[1]: Stopped Nagios Remote Plugin Executor.
May 08 14:15:34 cd systemd[1]: nagios-nrpe-server.service: Start request repeate
May 08 14:15:34 cd systemd[1]: nagios-nrpe-server.service: Failed with result 's
May 08 14:15:34 cd systemd[1]: Failed to start Nagios Remote Plugin Executor.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios-nrpe-server.service Active: failed

Post by tgriep »

What Operating system and release is the NRPE agent running on?
Have you looked at the /var/log/messages log file for any errors after you try to start the agent?

Can you get the following file from that server and post it here?

Code: Select all

/etc/nagios/nrpe.cfg
Also, run this as root ant post the output here.

Code: Select all

/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f
Be sure to check out our Knowledgebase for helpful articles and solutions!
naveen4b3
Posts: 3
Joined: Wed May 08, 2019 6:05 am

Re: nagios-nrpe-server.service Active: failed

Post by naveen4b3 »

root@onkar-pc:/tmp/nagios-plugins-release-2.2.1# systemctl status nagios-nrpe-server.service
● nagios-nrpe-server.service - Nagios Remote Plugin Executor
Loaded: loaded (/lib/systemd/system/nagios-nrpe-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-05-10 12:36:03 IST; 4min 17s ago
Docs: http://www.nagios.org/documentation
Process: 26654 ExecStopPost=/bin/rm -f /var/run/nagios/nrpe.pid (code=exited, status=0/SUCCESS)
Process: 26653 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f $NRPE_OPTS (code=exited, status=203/EXEC)
Main PID: 26653 (code=exited, status=203/EXEC)

May 10 12:36:03 onkar-pc systemd[1]: Started Nagios Remote Plugin Executor.
May 10 12:36:03 onkar-pc systemd[26653]: nagios-nrpe-server.service: Failed to execute command: No such file or directory
May 10 12:36:03 onkar-pc systemd[26653]: nagios-nrpe-server.service: Failed at step EXEC spawning /usr/sbin/nrpe: No such file or directory
May 10 12:36:03 onkar-pc systemd[1]: nagios-nrpe-server.service: Main process exited, code=exited, status=203/EXEC
May 10 12:36:03 onkar-pc systemd[1]: nagios-nrpe-server.service: Failed with result 'exit-code'.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: nagios-nrpe-server.service Active: failed

Post by tgriep »

This error
May 10 12:36:03 onkar-pc systemd[26653]: nagios-nrpe-server.service: Failed at step EXEC spawning /usr/sbin/nrpe: No such file or directory
Suggests that the NRPE application is not installed on the server anymore.
Does the file /usr/sbin/nrpe exist on the system?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked