Still having trouble with npcd...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Still having trouble with npcd...

Post by lmiltchev »

This is good news! :D Thanks for the feedback!
Be sure to check out our Knowledgebase for helpful articles and solutions!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post 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.
MathieuS
Posts: 24
Joined: Wed Aug 31, 2011 6:07 am

Re: Still having trouble with npcd...

Post 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!
MathieuS
Posts: 24
Joined: Wed Aug 31, 2011 6:07 am

Re: Still having trouble with npcd...

Post 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?
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post 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.
MathieuS
Posts: 24
Joined: Wed Aug 31, 2011 6:07 am

Re: Still having trouble with npcd...

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post by mguthrie »

What you you running to look for the parent process?

Code: Select all

ps aux | grep npcd
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 ; )
MathieuS
Posts: 24
Joined: Wed Aug 31, 2011 6:07 am

Re: Still having trouble with npcd...

Post by MathieuS »

I'm just back from vacation and I was wondering if the NPCD problem is solved in the new 1.8 release?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post by mguthrie »

Yeah, we updated pnp in the latest version, and it appears to have fixed the issue for multiple users.
Locked