THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Multiple Categories

Nagios XI - Mass Delete Old RRD Files

Mass Delete Old RRD Files

This KB article will show you how to run a script to delete all RRDs (and their respective XML files) under /usr/local/nagios/share/perfdata that have not been written to in 5 days, that also includes hosts/services that have been DOWN for more than 5 days, please be aware of that limitation.

 

Steps

Establish a terminal session to your Nagios XI server as the root user.

Execute the following commands:

cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/scripts/delete_old_rrds.sh
sh delete_old_rrds.sh

 

You will be prompted to confirm that you want to proceed. Once you answer yes the script will output all the files it deletes onto the screen. If you are using an SSH terminal session through a program like Putty you may need to increase your output buffer to see all of the results as there may be a lot of output.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - Customizing The Landing Page
Viewed 9489 times since Wed, Jan 27, 2016
Nagios XI - Importing Config Files From Nagios Core into Nagios XI
Viewed 18288 times since Wed, Jan 27, 2016
Nagios XI - Distributed Monitoring With NRDP
Viewed 8372 times since Thu, Aug 17, 2017
Nagios XI - Configuring SSL for Nagios XI
Viewed 14669 times since Wed, Jan 27, 2016
Nagios XI - Special Characters
Viewed 28922 times since Tue, Apr 25, 2017
Migrating Nagios XI to a different Server
Viewed 22116 times since Tue, Feb 16, 2021
Nagios XI - LDAP / Active Directory - Import Users Certificate Issues
Viewed 11070 times since Tue, Jul 26, 2016
Nagios XI - Connecting To Your Email Server
Viewed 5925 times since Wed, Jul 19, 2017
Nagios XI - Migrate Performance Data
Viewed 14811 times since Tue, Jan 26, 2016
Nagios XI - Virtual Machine Notes
Viewed 8079 times since Thu, Jan 28, 2016