Page 1 of 1

NPCD stops daily

Posted: Tue Nov 08, 2011 6:03 am
by fao
I think my issue may also be related to this one
http://support.nagios.com/forum/viewtop ... hilit=npcd

I am not sure what the return code 7 is nor if it causes npcd to stop

the npcd seems to stop at least once a day. I want to get your thoughts before I try installing the updated pnp as suggested in the referenced topic.

[11-07-2011 09:58:42] NPCD: ERROR: Executed command exits with return code '7'
[11-07-2011 09:58:42] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1320420956'
[11-07-2011 09:58:43] NPCD: ERROR: Executed command exits with return code '7'
[11-07-2011 09:58:43] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1320420986'
[11-07-2011 09:58:44] NPCD: ERROR: Executed command exits with return code '7'
[11-07-2011 09:58:44] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1320420971'
[11-07-2011 10:16:46] NPCD: ERROR: Executed command exits with return code '7'
[11-07-2011 10:16:46] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1320560321'
[11-07-2011 10:21:47] NPCD: ERROR: Executed command exits with return code '7'
[11-07-2011 10:21:47] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1320605651'
[11-07-2011 10:26:47] NPCD: ERROR: Executed command exits with return code '7'
[11-07-2011 10:26:47] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//service-perfdata.1320655444'
[11-07-2011 20:22:38] NPCD: Could not create thread... exiting with error 'Resource temporarily unavailable'

Re: NPCD stops daily

Posted: Tue Nov 08, 2011 10:50 am
by mguthrie
We did find a memory leak in npcd that would cause it to crash periodically on some systems. We fixed this in the 2011R1.8 release. I'd suggest upgrading first and see if that resolves your issue.

The other thing you can try would be the global permissions fix for that return code error.
http://assets.nagios.com/downloads/nagi ... p#fixperms

Re: NPCD stops daily

Posted: Thu Nov 10, 2011 2:01 am
by fao
thanks mguthrie, my issue w/ that script is that it sets the group "users" to the gid for many files and directories. Why is that when the "users" group doesn't appear to be referenced anywhere else?

Re: NPCD stops daily

Posted: Thu Nov 10, 2011 12:37 pm
by mguthrie
I'm not quite sure where that's coming from either, although I've seen that be the case before as well. I passed that question along to our lead developer, and I'm currently doing some investigating as to how those files are getting their permissions changed.