RRD Performance Graphs having trouble

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: RRD Performance Graphs having trouble

Post by AWS »

logs posted above.

thx
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RRD Performance Graphs having trouble

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: RRD Performance Graphs having trouble

Post 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
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: RRD Performance Graphs having trouble

Post by AWS »

The wait and suspense was killing me. I deleted the file /usr/local/nagios/var/spool/perfdata/1334648935.perfdata.host-PID-5427.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: RRD Performance Graphs having trouble

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: RRD Performance Graphs having trouble

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: RRD Performance Graphs having trouble

Post 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!
AWS
Posts: 63
Joined: Fri May 13, 2011 4:33 pm
Location: Vancouver, WA

Re: RRD Performance Graphs having trouble

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: RRD Performance Graphs having trouble

Post by slansing »

Glad to hear it! Closing as resolved.
Locked