One of my Nagios Servers is not showing any graphs. I check npcd, which is running in the process list and processing perf data.
Enabled Debug Mode on NPCD: Below are some of the logs:
[root@<Nagios Server> pnp]# service npcd restart
NPCD Stopped.
DEBUG: Config File = /usr/local/nagios/etc/pnp/npcd.cfg
CONFIG_OPT_LOGTYPE = file
CONFIG_OPT_LOGFILE = /usr/local/nagios/var/npcd.log
CONFIG_OPT_LOGFILESIZE = 10485760
CONFIG_OPT_LOGLEVEL = -1
CONFIG_OPT_SCANDIR = /usr/local/nagios/var/spool/perfdata/
CONFIG_OPT_RUNCMD = /usr/local/nagios/libexec/process_perfdata.pl
CONFIG_OPT_RUNCMD_ARG = -b
CONFIG_OPT_MAXTHREADS = 5
CONFIG_OPT_LOAD = 10.0
CONFIG_OPT_USER = nagios
CONFIG_OPT_GROUP = nagios
CONFIG_OPT_PIDFILE = /usr/local/nagiosxi/var/subsys/npcd.pid
CONFIG_OPT_SLEEPTIME = 15
CONFIG_OPT_IDENTMYSELF = (null)
---------------------------
DEBUG: load_threshold is enabled - ('10.000000')
NPCD started.
[root@alqanagiosxi01 pnp]# tail -f /usr/local/nagios/var/npcd.log
[05-27-2016 11:30:25] NPCD: DEBUG: load 0.130000/10.000000
[05-27-2016 11:30:25] NPCD: ThreadCounter 1/5 File is 1464363013.perfdata.service
[05-27-2016 11:30:25] NPCD: Processing file 1464363013.perfdata.host with ID 139827552630528 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1464363013.perfdata.host
[05-27-2016 11:30:25] NPCD: Regular File: 1464363013.perfdata.service
[05-27-2016 11:30:25] NPCD: Processing file '1464363013.perfdata.host'
[05-27-2016 11:30:25] NPCD: A thread was started on thread_counter = 1
[05-27-2016 11:30:25] NPCD: Processing file 1464363013.perfdata.service with ID 139827544237824 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1464363013.perfdata.service
[05-27-2016 11:30:25] NPCD: Have to wait: Filecounter = 2 - thread_counter = 2
[05-27-2016 11:30:25] NPCD: Processing file '1464363013.perfdata.service'
[05-27-2016 11:30:27] NPCD: No more files to process... waiting for 15 seconds
[05-27-2016 11:30:42] NPCD: Found 4 files in /usr/local/nagios/var/spool/perfdata/
[05-27-2016 11:30:42] NPCD: DEBUG: load 0.170000/10.000000
[05-27-2016 11:30:42] NPCD: ThreadCounter 0/5 File is .
[05-27-2016 11:30:42] NPCD: DEBUG: load 0.170000/10.000000
[05-27-2016 11:30:42] NPCD: ThreadCounter 0/5 File is ..
[05-27-2016 11:30:42] NPCD: DEBUG: load 0.170000/10.000000
[05-27-2016 11:30:42] NPCD: ThreadCounter 0/5 File is 1464363028.perfdata.host
[05-27-2016 11:30:42] NPCD: Regular File: 1464363028.perfdata.host
[05-27-2016 11:30:42] NPCD: A thread was started on thread_counter = 0