Page 2 of 4

Re: rrd graphs showing zero data for given interval

Posted: Fri Feb 21, 2014 1:30 pm
by jericho_g
Ok, I'll increase it later today. Here is the requested output:

[root@clesitonag1 ~]# ls /usr/local/nagios/var/spool/perfdata | wc -l
2
[root@clesitonag1 ~]# ls /usr/local/nagios/var/spool/xdipe | wc -l
ls: cannot access /usr/local/nagios/var/spool/xdipe: No such file or directory
0
[root@clesitonag1 ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
224

Re: rrd graphs showing zero data for given interval

Posted: Fri Feb 21, 2014 1:38 pm
by slansing
It looks like your check results are getting processed properly at that level, let us know if changing the timeout value has the intended effect.

Re: rrd graphs showing zero data for given interval

Posted: Thu Feb 27, 2014 2:04 pm
by jericho_g
We increased the the timeout to 30 seconds. I'm not seeing timeouts in the logs, but we're still seeing dropouts in the performance graphs.
Nagios_XI_1.jpg
cacti1.jpg
root@clesitonag1 ~]# tail -f /usr/local/nagios/var/npcd.log
[02-26-2014 13:12:58] NPCD: A thread was started on thread_counter = 0
[02-26-2014 13:12:58] NPCD: DEBUG: load 13.570000/40.000000
[02-26-2014 13:12:58] NPCD: ThreadCounter 1/4 File is 1393438364.perfdata.service
[02-26-2014 13:12:58] NPCD: Regular File: 1393438364.perfdata.service
[02-26-2014 13:12:58] NPCD: A thread was started on thread_counter = 1
[02-26-2014 13:12:58] NPCD: Processing file 1393438364.perfdata.host with ID 140737343776512 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1393438364.perfdata.host
[02-26-2014 13:12:58] NPCD: Have to wait: Filecounter = 2 - thread_counter = 2
[02-26-2014 13:12:58] NPCD: Processing file 1393438364.perfdata.service with ID 140737199068928 - going to exec /usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1393438364.perfdata.service
[02-26-2014 13:12:58] NPCD: Processing file '1393438364.perfdata.host'
[02-26-2014 13:12:58] NPCD: Processing file '1393438364.perfdata.service'
[02-26-2014 13:13:00] NPCD: No more files to process... waiting for 10 seconds


tail -f /usr/local/nagios/var/perfdata.log
2014-02-21 13:05:53 [20794] [0] *** TIMEOUT: Please check your npcd.cfg
2014-02-21 13:05:53 [20794] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1393005918.perfdata.service-PID-20794 deleted
2014-02-21 13:05:53 [20794] [0] *** Timeout while processing Host: "smnwallpoe18.advanstar.com" Service: "FastEthernet0_4_Bandwidth"
2014-02-21 13:05:53 [20794] [0] *** process_perfdata.pl terminated on signal ALRM
2014-02-22 13:06:01 [34503] [0] *** TIMEOUT: Timeout after 30 secs. ***
2014-02-22 13:06:01 [34503] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2014-02-22 13:06:01 [34503] [0] *** TIMEOUT: Please check your npcd.cfg
2014-02-22 13:06:01 [34503] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1393092318.perfdata.service-PID-34503 deleted
2014-02-22 13:06:01 [34503] [0] *** Timeout while processing Host: "smnwallpoe20.advanstar.com" Service: "FastEthernet0_14_Bandwidth"
2014-02-22 13:06:01 [34503] [0] *** process_perfdata.pl terminated on signal ALRM

Re: rrd graphs showing zero data for given interval

Posted: Thu Feb 27, 2014 3:34 pm
by lmiltchev
Did you upgrade pnp4nagios by chance? Can you run the following command, and show us the output:

Code: Select all

cat /usr/local/nagios/etc/pnp/pnp4nagios_release

Re: rrd graphs showing zero data for given interval

Posted: Thu Feb 27, 2014 4:21 pm
by jericho_g
Not sure, but here's the requested output:

[root@clesitonag1 ~]# cat /usr/local/nagios/etc/pnp/pnp4nagios_release
PKG_REL_DATE="05-02-2009"
PKG_VERSION="0.4.14"
PKG_NAME="pnp"

Re: rrd graphs showing zero data for given interval

Posted: Thu Feb 27, 2014 5:51 pm
by abrist
Have you ever attempted to set up a ramdisk or rrdcached?

Re: rrd graphs showing zero data for given interval

Posted: Thu Feb 27, 2014 6:15 pm
by jericho_g
No.

Re: rrd graphs showing zero data for given interval

Posted: Fri Feb 28, 2014 11:28 am
by lmiltchev
Let's take a look at the logs again.

Change the log level to "debug" in both, the "/usr/local/nagios/etc/pnp/npcd.cfg" and the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" file, and restart npcd:

Code: Select all

service npcd restart
Give it some time, then run the following commands, and post the output in code wraps:

Code: Select all

tail -100 /usr/local/nagios/var/npcd.log
tail -100 /usr/local/nagios/var/perfdata.log

Re: rrd graphs showing zero data for given interval

Posted: Mon Mar 10, 2014 6:00 pm
by jericho_g
Ok, requested logs are attached.

Re: rrd graphs showing zero data for given interval

Posted: Tue Mar 11, 2014 11:53 am
by lmiltchev
Did you update MRTG? What is the output of the following commands?

Code: Select all

env LANG=C LC_ALL=C /usr/bin/mrtg
ll /var/lock/mrtg