NPCD keep on terminating

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

NPCD keep on terminating

Post by rajasegar »

NPCD keep on terminating since upgrade to version 5.28

Code: Select all

[10-05-2016 12:19:15] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:15] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442641.perfdata.host'
[10-05-2016 12:19:15] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:15] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442581.perfdata.service'
[10-05-2016 12:19:15] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:15] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442611.perfdata.service'
[10-05-2016 12:19:15] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:15] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442627.perfdata.service'
[10-05-2016 12:19:20] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:20] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442656.perfdata.service'
[10-05-2016 12:19:20] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:20] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442641.perfdata.service'
[10-05-2016 12:19:20] NPCD: ERROR: Executed command exits with return code '1'
[10-05-2016 12:19:20] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1473442671.perfdata.service'
[10-05-2016 12:19:20] NPCD: Could not create thread... exiting with error 'Resource temporarily unavailable'

Code: Select all

[nagios@nagiosprodxi3 bin]$ ./npcd -V
npcd 0.4.14 - $Revision: 647 $

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

[nagios@nagiosprodxi3 bin]$

Config file

Code: Select all

[nagios@nagiosprodxi3 nagios]$ cat ./etc/pnp/npcd.cfg
# NPCD.cfg - sample configuration file for PNPs NPCD
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation;
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
# $Id: npcd.cfg-sample.in 440 2008-04-24 09:08:20Z hendrikb $

# Privilege Options

user = nagios
group = nagios


# Logging Options

# log_type - define if you want your logs to
# 'syslog' or to a 'file'
#
# log_type = <value>
#

log_type = file
#log_type = syslog


# log_file - define a path to your logfile
# needed if 'log_type'='file'
#
# log_file = </path/to/logpath/filename>
#

log_file = /usr/local/nagios/var/npcd.log


# max_logfile_size - defines the maximum filesize (bytes)
# before the logfile will rotated.
#
# max_logfile_size = <value> (default 10Mbyte)
#

max_logfile_size = 10485760


# log_level - how much should we log?
#
# log_level = <integer value>
#
#  0 = No logging - except errors
#  1 = Small logging - some few more output
#  2 = More Logging (actual ALL logs)
# -1 = DEBUG Mode - ALL Logging and slower processing
#

log_level = 0


# NEEDED OPTIONS
#
# perfdata_spool_dir - where we can find the
# performance data files
#
# perfdata_spool_dir = </path/to/directory/>
#

perfdata_spool_dir = /usr/local/nagios/var/spool/perfdata/


# Execute following command for each found file
# in 'perfdata_spool_dir'
#
# perfdata_file_run_cmd = </path/to/command>
#
# Must be executable by user/group from above
#
# perfdata_file_run_cmd = </path/to/filename>
#

perfdata_file_run_cmd = /usr/local/nagios/libexec/process_perfdata.pl


# perfdata_file_run_cmd_args (optional)
#
# If you wish, you can apply more arguments to the
# perfdata_file_run_cmd
#
# Hint:
# NPCD will create a command line like this:
# '<perfdata_file_runc_cmd> <perfdata_file_runc_cmd_args> <filename_from_spool_dir>'
#

perfdata_file_run_cmd_args = -b


# npcd_max_threads - define how many parallel threads we
# should start

npcd_max_threads = 10

# sleep_time - how many seconds should npcd wait between dirscans
#
# sleep_time = 15 (default)

sleep_time = 15


# EXPERIMENTAL
#
# use_load_threshold - enables/disables load watching
#
# use_load_threshold = <0 / 1> (default: 0)
#

#use_load_threshold = 0


# EXPERIMENTAL
#
# load_threshold - npcd won't start new threads
# if your system load is over this threshold
#
# load_threshold = <float value> (default: 10.0)
#
# Hint: Do not use "," as decimal delimeter
#

load_threshold = 120.0


# location of your pid file

#pid_file=/var/run/npcd.pid
pid_file=/usr/local/nagiosxi/var/subsys/npcd.pid


# We have to end with a newline

Last edited by dwhitfield on Mon Oct 10, 2016 9:38 am, edited 1 time in total.
Reason: marking with green check mark
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NPCD keep on terminating

Post by lmiltchev »

Run the following commands and show the output in code wraps:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
If you are using ramdisk, run these commands instead:

Code: Select all

ls /var/nagiosramdisk/spool/xidpe | wc -l
ls /var/nagiosramdisk/spool/perfdata/ | wc -l
ls /var/nagiosramdisk/spool/checkresults/ | wc -l
Also, run:

Code: Select all

lscpu
uptime
service npcd restart
service npcd status
tail -100 /usr/local/nagios/var/perfdata.log
Does the load on your system ever reaches 120?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: NPCD keep on terminating

Post by rajasegar »

lmiltchev wrote:Run the following commands and show the output in code wraps:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
If you are using ramdisk, run these commands instead:

Code: Select all

ls /var/nagiosramdisk/spool/xidpe | wc -l
ls /var/nagiosramdisk/spool/perfdata/ | wc -l
ls /var/nagiosramdisk/spool/checkresults/ | wc -l
Also, run:

Code: Select all

lscpu
uptime
service npcd restart
service npcd status
tail -100 /usr/local/nagios/var/perfdata.log
Does the load on your system ever reaches 120?

Code: Select all

[nagios@nagiosprodxi3 nagios]$ ls /usr/local/nagios/var/spool/xidpe | wc -l
0
[nagios@nagiosprodxi3 nagios]$ ls /usr/local/nagios/var/spool/perfdata | wc -l
2693
[nagios@nagiosprodxi3 nagios]$ ls /usr/local/nagios/var/spool/checkresults | wc -l
0

Code: Select all

[nagios@nagiosprodxi3 nagios]$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             8
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 44
Stepping:              2
CPU MHz:               2932.500
BogoMIPS:              5865.00
Hypervisor vendor:     VMware
Virtualization type:   full
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              12288K
NUMA node0 CPU(s):     0-7

[nagios@nagiosprodxi3 nagios]$ uptime
 08:54:48 up 38 days, 18:17,  1 user,  load average: 22.29, 17.23, 9.70

[nagios@nagiosprodxi3 nagios]$ sudo service npcd restart
NPCD was not running.
NPCD started.
[nagios@nagiosprodxi3 nagios]$ tail -100 /usr/local/nagios/var/perfdata.log
2016-10-07 08:54:47 [28976] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:47 [28976] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782251.perfdata.service-PID-28976 deleted
2016-10-07 08:54:47 [28976] [0] *** Timeout while processing Host: "SST_SGR_ATM_FCAW_WN" Service: "Memory__Physical"
2016-10-07 08:54:47 [28976] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:54:47 [29018] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:54:47 [29018] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:54:47 [29018] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:47 [29018] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782296.perfdata.service-PID-29018 deleted
2016-10-07 08:54:47 [29018] [0] *** Timeout while processing Host: "SST_SGR_ATM_FCCH_WN" Service: "Disk__Drive_ALL"
2016-10-07 08:54:47 [29018] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:54:47 [29016] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:54:47 [29016] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:54:47 [29016] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:47 [29016] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782281.perfdata.service-PID-29016 deleted
2016-10-07 08:54:47 [29016] [0] *** Timeout while processing Host: "SST_MEL_ATM_FCUA_WN" Service: "Disk__Drive_ALL"
2016-10-07 08:54:47 [29016] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:54:47 [29013] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:54:47 [29013] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:54:47 [29013] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:47 [29013] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782266.perfdata.service-PID-29013 deleted
2016-10-07 08:54:47 [29013] [0] *** Timeout while processing Host: "SST_PP_ATM_FSBW_WN" Service: "Disk__Drive_ALL"
2016-10-07 08:54:47 [29013] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:54:52 [3894] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:54:52 [3894] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:54:52 [3894] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:52 [3894] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782401.perfdata.host-PID-3894 deleted
2016-10-07 08:54:52 [3894] [0] *** Timeout while processing Host: "SST_JHR_ATM_FTE6_WN" Service: "_HOST_"
2016-10-07 08:54:52 [3894] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:54:52 [3891] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:54:52 [3891] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:54:52 [3891] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:52 [3891] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782386.perfdata.service-PID-3891 deleted
2016-10-07 08:54:52 [3891] [0] *** Timeout while processing Host: "SST_KUL_ATM_FSY6_NCR" Service: "Disk__Drive_ALL"
2016-10-07 08:54:52 [3891] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:54:52 [3883] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:54:52 [3883] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:54:52 [3883] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:54:52 [3883] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782356.perfdata.service-PID-3883 deleted
2016-10-07 08:54:52 [3883] [0] *** Timeout while processing Host: "SST_SWK_ATM_FTJH_WN" Service: "Memory__Pagefile"
2016-10-07 08:54:52 [3883] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1454] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1454] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1454] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1454] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782416.perfdata.host-PID-1454 deleted
2016-10-07 08:55:27 [1454] [0] *** Timeout while processing Host: "SST_NS_ATM_FCPE_WN" Service: "_HOST_"
2016-10-07 08:55:27 [1454] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1473] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1475] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1473] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1475] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1473] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1475] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1473] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782476.perfdata.host-PID-1473 deleted
2016-10-07 08:55:27 [1475] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782461.perfdata.service-PID-1475 deleted
2016-10-07 08:55:27 [1476] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1473] [0] *** Timeout while processing Host: "SST_KUL_ATM_FSRV_WN" Service: "_HOST_"
2016-10-07 08:55:27 [1475] [0] *** Timeout while processing Host: "SST_MEL_ATM_FSIT_WN" Service: "CPU_Usage"
2016-10-07 08:55:27 [1476] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1473] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1475] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1476] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1476] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782461.perfdata.host-PID-1476 deleted
2016-10-07 08:55:27 [1476] [0] *** Timeout while processing Host: "SST_SGR_ATM_FCRO_WN" Service: "_HOST_"
2016-10-07 08:55:27 [1476] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1451] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1451] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1455] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1451] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1455] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1455] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1451] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782401.perfdata.service-PID-1451 deleted
2016-10-07 08:55:27 [1455] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782416.perfdata.service-PID-1455 deleted
2016-10-07 08:55:27 [1451] [0] *** Timeout while processing Host: "SST_SGR_ATM_FCX0_NCR" Service: "Memory__Physical"
2016-10-07 08:55:27 [1451] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1455] [0] *** Timeout while processing Host: "SST_PRK_ATM_FSM1_WN" Service: "Memory__Physical"
2016-10-07 08:55:27 [1455] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1464] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1464] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1464] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1464] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782446.perfdata.host-PID-1464 deleted
2016-10-07 08:55:27 [1464] [0] *** Timeout while processing Host: "SST_PP_ATM_FCH0_WN" Service: "_HOST_"
2016-10-07 08:55:27 [1464] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1472] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1472] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1472] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1472] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782446.perfdata.service-PID-1472 deleted
2016-10-07 08:55:27 [1472] [0] *** Timeout while processing Host: "SST_KUL_ATM_0071_WN" Service: "CPU_Usage"
2016-10-07 08:55:27 [1472] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1458] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1458] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1458] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1458] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782431.perfdata.host-PID-1458 deleted
2016-10-07 08:55:27 [1458] [0] *** Timeout while processing Host: "SST_KEL_ATM_FCMM_WN" Service: "_HOST_"
2016-10-07 08:55:27 [1458] [0] *** process_perfdata.pl terminated on signal ALRM
2016-10-07 08:55:27 [1463] [0] *** TIMEOUT: Timeout after 5 secs. ***
2016-10-07 08:55:27 [1463] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2016-10-07 08:55:27 [1463] [0] *** TIMEOUT: Please check your npcd.cfg
2016-10-07 08:55:27 [1463] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1475782431.perfdata.service-PID-1463 deleted
2016-10-07 08:55:27 [1463] [0] *** Timeout while processing Host: "SST_SGR_ATM_0811_NCR" Service: "Memory__Pagefile"
2016-10-07 08:55:27 [1463] [0] *** process_perfdata.pl terminated on signal ALRM
[nagios@nagiosprodxi3 nagios]$
Apparently the load reached 120 but this is very rare.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NPCD keep on terminating

Post by lmiltchev »

I've got quite many perfdata files piled up in the "/usr/local/nagios/var/spool/perfdata" directory.
[nagios@nagiosprodxi3 nagios]$ ls /usr/local/nagios/var/spool/perfdata | wc -l
2693
It is possible that npcd will "catch up", and process these files now that is running. Watch the above command for a while to see if this number (2693) is decreasing.

Code: Select all

watch -n 1 'ls /usr/local/nagios/var/spool/perfdata | wc -l'
If your system cannot catch up, you could remove these files, and "start clean":

Code: Select all

cd /usr/local/nagios/var/spool
rm -rf perfdata
mkdir perfdata
chown nagios.nagios perfdata
chmod 755 perfdata
service npcd restart
Note: You will lose only a chunk of the historical data (whatever was if the files you deleted) but not all of it.

I would also recommend increasing the timeout in the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" to 20. See our KB article on the issue.
https://support.nagios.com/kb/article.php?id=9
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: NPCD keep on terminating

Post by rajasegar »

lmiltchev wrote:I've got quite many perfdata files piled up in the "/usr/local/nagios/var/spool/perfdata" directory.
[nagios@nagiosprodxi3 nagios]$ ls /usr/local/nagios/var/spool/perfdata | wc -l
2693
It is possible that npcd will "catch up", and process these files now that is running. Watch the above command for a while to see if this number (2693) is decreasing.

Code: Select all

watch -n 1 'ls /usr/local/nagios/var/spool/perfdata | wc -l'
If your system cannot catch up, you could remove these files, and "start clean":

Code: Select all

cd /usr/local/nagios/var/spool
rm -rf perfdata
mkdir perfdata
chown nagios.nagios perfdata
chmod 755 perfdata
service npcd restart
Note: You will lose only a chunk of the historical data (whatever was if the files you deleted) but not all of it.

I would also recommend increasing the timeout in the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" to 20. See our KB article on the issue.
https://support.nagios.com/kb/article.php?id=9
Thanks it is ok now. Please close the thread
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: NPCD keep on terminating

Post by dwhitfield »

Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!
Locked