nrpe not getting started on Linux machine

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
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

nrpe not getting started on Linux machine

Post by Pratapa »

Hi,

nrpe is not getting started on one of the client machine which is a Linux server.

Getting following error.

[root@host1 nagios]# service nrpe status
Redirecting to /bin/systemctl status nrpe.service
● nrpe.service - Nagios Remote Program Executor
Loaded: loaded (/usr/lib/systemd/system/nrpe.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-02-18 21:51:04 AEDT; 4s ago
Docs: http://www.nagios.org/documentation
Process: 75976 ExecStopPost=/bin/rm -f /var/run/nrpe/nrpe.pid (code=exited, status=0/SUCCESS)
Process: 75974 ExecStart=/usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f $NRPE_SSL_OPT (code=exited, status=1/FAILURE)
Main PID: 75974 (code=exited, status=1/FAILURE)

Feb 18 21:51:04 host1 systemd[1]: Started Nagios Remote Program Executor.
Feb 18 21:51:04 host1 systemd[1]: Starting Nagios Remote Program Executor...
Feb 18 21:51:04 host1 nrpe[75974]: Starting up daemon
Feb 18 21:51:04 host1 nrpe[75974]: Warning: Could not set effective GID=992
Feb 18 21:51:04 host1 nrpe[75974]: Warning: Unable to change supplementary groups using initgroups()
Feb 18 21:51:04 host1 nrpe[75974]: Warning: Could not set effective UID=995
Feb 18 21:51:04 host1 systemd[1]: nrpe.service: main process exited, code=exited, status=1/FAILURE
Feb 18 21:51:04 host1 systemd[1]: Unit nrpe.service entered failed state.
Feb 18 21:51:04 host1 systemd[1]: nrpe.service failed.
[root@host1 nagios]#



[root@host1 nagios]# ps -ef|grep nrpe
nagios 64358 1 0 21:18 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 76044 57255 0 21:51 pts/0 00:00:00 grep --color=auto nrpe


[root@host1 nagios]# cat /etc/nagios/nrpe.cfg|grep pid
#pid_file=/var/run/nagios/nrpe.pid
pid_file=/var/run/nrpe/nrpe.pid


[root@host1 nagios]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)


[root@nagios libexec]# ./check_nrpe -H host1
NRPE v3.2.1

But checks are happening in Nagios GUI.

What could be the problem?
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Re: nrpe not getting started on Linux machine

Post by Pratapa »

[root@host1 nagios]# ps -ef|grep nrpe
nagios 64358 1 0 21:18 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 76044 57255 0 21:51 pts/0 00:00:00 grep --color=auto nrpe

We killed and restarted nrpe but to no avail.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrpe not getting started on Linux machine

Post by scottwilkerson »

Pratapa wrote:

Code: Select all

nagios 64358 1 0 21:18 ? 00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
this looks like it is started

Can you show the output of

Code: Select all

netstat -nlp|grep 5666
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Re: nrpe not getting started on Linux machine

Post by Pratapa »

[root@host1~]# netstat -nlp|grep 5666
tcp 0 0 10.210.30.180:5666 0.0.0.0:* LISTEN 64358/nrpe
Pratapa
Posts: 150
Joined: Tue Oct 01, 2019 1:33 am

Re: nrpe not getting started on Linux machine

Post by Pratapa »

We have killed the PID 64358 and started nrpe

#kill 64358
#service nrpe start

This is resolved. You may lock the thread.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrpe not getting started on Linux machine

Post by scottwilkerson »

Pratapa wrote:We have killed the PID 64358 and started nrpe

#kill 64358
#service nrpe start

This is resolved. You may lock the thread.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked