Page 2 of 2

Re: RRD Performance Graphs having trouble

Posted: Tue Sep 10, 2013 3:43 pm
by AWS
logs posted above.

thx

Re: RRD Performance Graphs having trouble

Posted: Tue Sep 10, 2013 3:54 pm
by abrist
You have a file that is not being reaped. Try to remove it:

Code: Select all

rm /usr/local/nagios/var/spool/xidpe/1334648935.perfdata.host-PID-5427
Additionally, lets check the number of files in the folder:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe/ | wc -l

Re: RRD Performance Graphs having trouble

Posted: Tue Sep 10, 2013 6:34 pm
by AWS
abrist wrote:You have a file that is not being reaped. Try to remove it:

Code: Select all

rm /usr/local/nagios/var/spool/xidpe/1334648935.perfdata.host-PID-5427
Additionally, lets check the number of files in the folder:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe/ | wc -l

Code: Select all

[root@nagios ~]# rm /usr/local/nagios/var/spool/xidpe/1334648935.perfdata.host-PID-5427
rm: cannot lstat `/usr/local/nagios/var/spool/xidpe/1334648935.perfdata.host-PID-5427': No such file or directory
I don't have file 1334648935.perfdata.host-PID-5427 in /usr/local/nagios/var/spool/xidpe but instead at /usr/local/nagios/var/spool/perfdata/ I'm assuming you want that file removed. It's the only file in that directory (/usr/local/nagios/var/spool/perfdata/)

Code: Select all

[root@nagios ~]# ls /usr/local/nagios/var/spool/xidpe/ | wc -l
1364041

Code: Select all

[root@nagios perfdata]# ls /usr/local/nagios/var/spool/perfdata/ | wc -l
1
At this point I haven't removed any file.

Thx

Re: RRD Performance Graphs having trouble

Posted: Tue Sep 10, 2013 7:16 pm
by AWS
The wait and suspense was killing me. I deleted the file /usr/local/nagios/var/spool/perfdata/1334648935.perfdata.host-PID-5427.

Re: RRD Performance Graphs having trouble

Posted: Wed Sep 11, 2013 10:22 am
by abrist
There are wayyyy too many files in xidpe. This will lead to stat() problems when npcd tries to reap perfdata files. We will need to remove those files for npcd to begin to process perfdata once again. This will cause a gap of historical data though, as those files represent performance data that will not be recorded. A standard "rm" will fail due to stat() problems as well, so below you will find a command that can actually delete the files without first trying to list the directory contents:

Code: Select all

cd /usr/local/nagios/var/spool/xidpe/
find . -type f -delete
And then, try once again to restart npcd, wait 15 minutes, and then check for new perfdata on your graphs.

Code: Select all

service npcd restart

Re: RRD Performance Graphs having trouble

Posted: Wed Sep 11, 2013 11:21 am
by AWS
it's working hard on deleting all those files... for a while.

Code: Select all

localhost	Current Load  CRITICAL - load average: 16.99, 16.46, 13.45
:lol:

Thanks. When it finishes sometime next year I'll let you know.

Re: RRD Performance Graphs having trouble

Posted: Wed Sep 11, 2013 11:41 am
by slansing
Haha, sounds good. If we tried to re-initiate reaping with all those files stuck in there Nagios would have choked pretty hard. Let us know!

Re: RRD Performance Graphs having trouble

Posted: Wed Sep 11, 2013 6:25 pm
by AWS
Thank you for your help: slansing, abrist and sreinhardt. It looks like the RRD graphs are working as they should. It's been running collecting/reaping data for a few hours now and it looks good!

thank you again. Problem resolved.

:D

Re: RRD Performance Graphs having trouble

Posted: Thu Sep 12, 2013 9:15 am
by slansing
Glad to hear it! Closing as resolved.