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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

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

Post by Gonela »

found one error on "perfdata.log" in old history log
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

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

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post by tgriep »

OK, we'll leave the post open is you have any more issues. Thanks for reporting back.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Gonela
Posts: 135
Joined: Wed Jan 10, 2018 5:23 am

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

Post 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'
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked