This is a cache of https://support.nagios.com/kb/article/nagios-xi-mass-delete-old-rrd-files-854.html. It is a snapshot of the page at 2025-05-14T00:09:39.134+0000.
Nagios <strong>xi</strong> - Mass Delete Old RRD Files
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 - Excluding Hosts And Hostgroups
Viewed 6947 times since Tue, May 2, 2017
Nagios xi - Manual Backup And Restore Databases
Viewed 12329 times since Thu, Mar 31, 2016
Nagios xi - Receiving SNMP Traps From Nagios Network Analyzer
Viewed 7801 times since Mon, Oct 17, 2016
Installing Nagios Mobile
Viewed 8470 times since Wed, Jan 27, 2016
SNMP Traps - Understanding Trap Variables
Viewed 23402 times since Mon, Oct 24, 2016
Nagios xi - Database Optimization
Viewed 7916 times since Thu, Jan 28, 2016
Nagios xi - SNMP Trap v3 Configuration
Viewed 33628 times since Tue, Nov 13, 2018
Nagios xi - Introduction to Event Handlers
Viewed 8893 times since Thu, Jan 28, 2016
Nagios xi - Understanding the Nagios xi Directory Structure
Viewed 7148 times since Thu, Jan 28, 2016
Nagios xi - Using DUO Two Factor Authentication
Viewed 6438 times since Tue, Jan 8, 2019