Page 2 of 2

Re: PCD: ERROR: Executed command exits with return code '7'

Posted: Tue Oct 16, 2018 3:36 am
by Gonela
found one error on "perfdata.log" in old history log

Re: PCD: ERROR: Executed command exits with return code '7'

Posted: Tue Oct 16, 2018 8:58 am
by tgriep
There seems to be 2 copies of the npcd daemon running and the duplicated copy needs to be stopped.
Run the following as root to kill off the process and start it up again.

Code: Select all

service npcd stop
kill -9 npcd
service npcd start
Then check the npcd.log file and hopefully you will not see these messages anymore which shows that there are 2 processes running,
is an already in process PNP file. Leaving it untouched.

Re: PCD: ERROR: Executed command exits with return code '7'

Posted: Wed Oct 17, 2018 12:17 am
by Gonela
Yes, two copies of ncpd are running. and killed all ncpd process . started one ncpd process.

Let me keep eye on graphs for few days.

Re: PCD: ERROR: Executed command exits with return code '7'

Posted: Wed Oct 17, 2018 9:16 am
by tgriep
OK, we'll leave the post open is you have any more issues. Thanks for reporting back.

Re: PCD: ERROR: Executed command exits with return code '7'

Posted: Fri Oct 26, 2018 6:51 am
by Gonela
Hi

Again error started ,

Code: Select all

[10-26-2018 22:49:50] NPCD: ERROR: Executed command exits with return code '7'
[10-26-2018 22:49:50] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1540552346.perfdata.service'
[10-26-2018 22:49:52] NPCD: ERROR: Executed command exits with return code '7'
[10-26-2018 22:49:52] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1540552325.perfdata.service'
[10-26-2018 22:49:53] NPCD: ERROR: Executed command exits with return code '7'
[10-26-2018 22:49:53] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /var/nagiosramdisk/spool/perfdata//1540552316.perfdata.service'
[10-26-2018 22:49:53] NPCD: Processing file '1540552356.perfdata.host'
[10-26-2018 22:49:53] NPCD: Processing file '1540552387.perfdata.host'
[10-26-2018 22:49:53] NPCD: Processing file '1540552356.perfdata.service'
[10-26-2018 22:49:53] NPCD: Processing file '1540552373.perfdata.host'
[10-26-2018 22:49:53] NPCD: Processing file '1540552373.perfdata.service'

Re: PCD: ERROR: Executed command exits with return code '7'

Posted: Fri Oct 26, 2018 9:47 am
by tgriep
Lets increase the timeout setting. Edit this file

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
find the Timeout setting and double the current value.

Code: Select all

TIMEOUT = 
Save the file
Save out the file and restart these services by running

Code: Select all

service npcd restart
service nagios restart
Also, are there 2 copies of the npcd process running?