nrpe dead but subsys is locked

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
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

nrpe dead but subsys is locked

Post by vvz »

Hello!
I'm using nagios about one year and evrything was OK.
Today NRPE on client crashed (don't know why).
When i'm trying to make check_nrpe both from nagios server and even from client i got reply:
Could not complete SSL handshake
when I stop NRPE service on client - /var/run/nrpe.pid is not deleted, though /var/lock/subsys/nrpe was successfully deleted
I deleted nrpe.pid manually (a few times) and started nrpe.
nrpe.pid file appeared but no directory in /proc corresponding to process # in nrpe.pid.
and I'm not able find the process in ps output.
Any advise?
Thank you
vvz
Posts: 187
Joined: Wed Oct 30, 2013 5:15 pm

Re: nrpe dead but subsys is locked

Post by vvz »

the problem is solved.
if smbdy meets this problem, try next:

run command
ulimit -a
it will show you maximum number of processes allowed for one user. in my case 1024.

then make ps and count number of nagios processes - it was 1024

That was the reason why I was not able to start next nrpe process.

Just use killall -u nagios to kill all processes and done.

I believe we can close the thread.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nrpe dead but subsys is locked

Post by slansing »

Thank's for the heads up vvz, I'll lock this up for now, let us know if the problem comes back.
Locked