Page 3 of 3
Re: Still having trouble with npcd...
Posted: Tue Oct 25, 2011 9:28 am
by lmiltchev
This is good news!

Thanks for the feedback!
Re: Still having trouble with npcd...
Posted: Tue Oct 25, 2011 9:35 am
by mguthrie
Good deal! Glad to hear it. We're doing some final testing for the 1.8 release, but we're going to include the new npcd version in 1.8.
@MathieuS - I accidentally left some Makefiles in the above tarball for a 32bit machine, so if you're using a 64bit system just wait for the 1.8 release, or else it will break when it compiles.
Re: Still having trouble with npcd...
Posted: Tue Oct 25, 2011 2:41 pm
by MathieuS
I'll wait for the update. Seems that I've chosen a bad time to go on a holiday

. Glad you found the problem though! You guys deliver great support!
Re: Still having trouble with npcd...
Posted: Thu Oct 27, 2011 9:50 am
by MathieuS
I've noticed something. Although I have a cron that restarts the npcd service every hour there are still some problems. If I do the command "top" then after a while I see multiple npcd PID's. When I do "service npcd status" I see only one PID being used. But if I do "pgrep npcd" I see all the PID's. This would suggest there are 2 ghost instances running of npcd?
Re: Still having trouble with npcd...
Posted: Thu Oct 27, 2011 9:56 am
by mguthrie
What you're seeing there is that npcd spawns multiple child threads. The default thread limit for npcd is 5. This setting is controlled in the /usr/local/nagios/etc/pnp/npcd.cfg file.
Re: Still having trouble with npcd...
Posted: Fri Oct 28, 2011 1:20 am
by MathieuS
Ok, but when I look in the npcd.cfg I see "npcd_max_threads = 5" but there are 7 PID's. Is this possible?
Re: Still having trouble with npcd...
Posted: Fri Oct 28, 2011 9:36 am
by mguthrie
What you you running to look for the parent process?
It's possible there's something goofy from the process being restarted from cron, but that *shouldn't* matter.
How about we just hurry up and get our 1.8 release out the door? I'm hoping to have it out by the end of the day ; )
Re: Still having trouble with npcd...
Posted: Wed Nov 16, 2011 3:36 am
by MathieuS
I'm just back from vacation and I was wondering if the NPCD problem is solved in the new 1.8 release?
Re: Still having trouble with npcd...
Posted: Wed Nov 16, 2011 10:14 am
by mguthrie
Yeah, we updated pnp in the latest version, and it appears to have fixed the issue for multiple users.