Still having trouble with npcd...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post by mguthrie »

My hope is that this issue will just disappear. These settings control how processes handle memory allocation, so from here we just have to watch and wait to see if npcd stabilizes.
MathieuS
Posts: 24
Joined: Wed Aug 31, 2011 6:07 am

Re: Still having trouble with npcd...

Post by MathieuS »

I have the same problem. At mike's request I've tried a cronjob that restarts the npcd service every hour. It seems to work and I have no more problems although this is really a dirty solution! I would like to see it solved but in the meantime I can go on vacation without worries.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Still having trouble with npcd...

Post by nscott »

MathieuS,

Thanks for telling us if it had worked/didn't work. We'll do some digging on it, but I'm glad you got it working.
Nicholas Scott
Former Nagios employee
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Still having trouble with npcd...

Post by cwscribner »

So changing the settings that Mike suggested didn't work :( It did okay for a while but it died again this morning with the same error code.

I think for the time being I may do the cronjob way just so I can leave this alone for a while.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post by mguthrie »

Just an update on this, we're investigating possible memory leaks on the npcd process. I'll post to this thread once we know more...
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post by mguthrie »

If anyone wants to help test out this updated version of the PNP daemon, it'll help us know if it corrects the issue or not. I haven't been able to recreate the memory allocation error that's crashing the npcd daemon, so if you guys are comfortable testing this version out, it would help a great deal. I've had a smoke test with this version running for the last day or so on my test box, and it seems to run fine. Let us know how it goes.

Here's the latest 0.4 snapshot of PNP. Download it to the /tmp directory and run:

Code: Select all

cd /tmp
tar zxf pnp.tar.gz
cd pnp
./upgrade
Here's the changelog for updates made to this version from the one you're currently using:

Code: Select all

**SVN Current:**
  * check_fping template php fix
  * Fix memory leak during scandir
  * Fix problem with negative value in warning and critical range
  * New NPCD init script
  * Fix very ugly typo in npcdmod.c
  * New npcdmod config var: perfdata_spool_filename for multiple nagios usage
  * defining pdf_width and pdf_height in config.php PDFs can have different sizes than graphs
You do not have the required permissions to view the files attached to this post.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Still having trouble with npcd...

Post by cwscribner »

Just did the install and it seems to be running fine so far.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Still having trouble with npcd...

Post by mguthrie »

Ok, if all seems well we may push that updated version into our next update. Go ahead and let us know if it begins to experience problems again.
MathieuS
Posts: 24
Joined: Wed Aug 31, 2011 6:07 am

Re: Still having trouble with npcd...

Post by MathieuS »

Any news on the update? I want a solution too but you must understand that I'm scared of ruining my machine ;)
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: Still having trouble with npcd...

Post by cwscribner »

Everything is still up and running, and I'm not seeing any errors in the logs. Nothing got broken in the upgrade either ;)
Locked