Page 1 of 1

nrpe dead but subsys is locked

Posted: Sun Oct 26, 2014 9:16 pm
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

Re: nrpe dead but subsys is locked

Posted: Mon Oct 27, 2014 10:44 am
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.

Re: nrpe dead but subsys is locked

Posted: Mon Oct 27, 2014 10:48 am
by slansing
Thank's for the heads up vvz, I'll lock this up for now, let us know if the problem comes back.