Page 1 of 1

Nagios XIR1.1 - Perf Graphs not working

Posted: Fri Jun 13, 2014 5:42 am
by matarese
Hello!

We installed the new Nagios release yesterday. Nagios XI 2014R1.1
Latest Available Version:
Installed Version: 2014R1.1
Last Update Check: 2014-06-11 05:59:40
Today morning, I noticed, the performance graphs are not showing nothing all host, and all services.
I checked the npcd.log file:
[06-13-2014 10:37:06] NPCD: WARN: MAX load reached: load 34.310000/10.000000 at i=1
[06-13-2014 10:37:21] NPCD: WARN: MAX load reached: load 39.970000/10.000000 at i=1
[06-13-2014 10:37:36] NPCD: WARN: MAX load reached: load 36.650000/10.000000 at i=1

And I checked the perfdata.log file:
2014-06-13 07:24:15 [3430] [0] *** TIMEOUT: Please check your npcd.cfg
2014-06-13 07:24:15 [3430] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1402570742.perfdata.service-PID-3430 deleted
2014-06-13 07:24:15 [3430] [0] *** Timeout while processing Host: "HOST_NAME" Service: "SERVICE_NAME"
2014-06-13 07:24:15 [3430] [0] *** process_perfdata.pl terminated on signal ALRM

Any ideas?

Thx.

p.s.: sorry, but my English is very poor...

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Fri Jun 13, 2014 9:59 am
by abrist
The FAQ as a few sections for resolviong those common issues:
Perfdata Timeout
NPCD Load Threshold

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Fri Jun 13, 2014 1:02 pm
by matarese
Thanks the answers, but I try every step of this two page and no solution...

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Fri Jun 13, 2014 1:13 pm
by sreinhardt
What changes did you attempt that did not appear to resolve the issue? We need to know exactly what you attempted before we can advise other changes.

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Wed Jul 02, 2014 3:14 am
by matarese
Nothing.
Import hosts and service file-s (host: 1000-2500 service 4xxx-9xxx).
Too many file-s????

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Wed Jul 02, 2014 1:05 pm
by tmcdonald
I am a bit confused by your answer. We need to know what commands you ran and whether or not they worked. Did you follow the guides that abrist posted?

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Thu Jul 03, 2014 2:05 am
by matarese
Yes, I followed the steps, but my timeout and my threshold number is greater.
When I finished, I restart the npcd service:
service npcd start
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 = 250.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 - ('250.000000')
NPCD started.

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Thu Jul 03, 2014 4:38 am
by matarese
oooooh.
I noticed, /usr/local/nagios/var/spool/perfdate folder size is huge.
I tried to check the files in the folder, but the answer is very slow.
When I open the folder finally, I find thousands file *service, *host etc.
I tried to stop every service, then deleted every files in this library.
Started services, and few minutes later the performance graphs are showing all host, and all services (2500-9500)...

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Thu Jul 03, 2014 11:48 am
by slansing
Yep, that is a common issue if problems occur in processing perf data. That directory, along with it's neighboring "XIDPE" directory can get clogged and your perfdata will cease being processed. In some cases, if there are just too many files there to be processed you will need to remove them to jump start perfdata processing, sounds like that is what happened here. Is everything coming through fine? Are we good to close the thread?

Re: Nagios XIR1.1 - Perf Graphs not working

Posted: Mon Jul 07, 2014 5:58 am
by matarese
Thank you, everything works fine.