reduce the size of the perfdata folder?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

reduce the size of the perfdata folder?

Post by jenstar13 »

Hi,
our perfdata folder has grown quite large. Is there a way to reduce the size of the perfdata kept?
is there a "flush everything after xx days" ?

or some other way to reduce the size?
I'm upgrading the XI interface and saw our sidk space was at 79%, and we alert at 80%

Thank you in advance
Jen
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: reduce the size of the perfdata folder?

Post by tgriep »

If you want to clean out the old performance data files left over from system that are no longer on the server, you can run the following 2 commands to remove any file older than 60 days.

Code: Select all

find /usr/local/nagios/share/perfdata/ -type f -mtime +60 -name '*.rrd' -execdir rm -- {} \;
find /usr/local/nagios/share/perfdata/ -type f -mtime +60 -name '*.xml' -execdir rm -- {} \;
You can adjust the numbers of days to what you want.

Make sure you have a full backup of that folder in case you need to go back and restore the files.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: reduce the size of the perfdata folder?

Post by jenstar13 »

but in other cases, you are saying that I'm going to have to extend the size of my disk? What size disk do you recommend for a nagios that is used heavily. We started out with 50 gig
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: reduce the size of the perfdata folder?

Post by tgriep »

The files are pretty much a fixed size depending on the number of datapoints the check is running.
Typically they are 500K to 1.5Meg in size.
You can use that to calculate how much more space to add.

They do not grow as they are a round robin database to old data gets removed as new is put in.

Now if you add more and more checks, that will add additional files to the perfdata folder and increase the size.
If you are not planing to add a lot more checks to the system, you would have to increase it much if at all.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jenstar13
Posts: 174
Joined: Wed May 11, 2016 7:48 am

Re: reduce the size of the perfdata folder?

Post by jenstar13 »

ok thank you, you can close the ticket
Locked