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/

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 - License Maintenance Status Check
Viewed 5337 times since Thu, Feb 25, 2016
Nagios XI - Reset Security Credentials
Viewed 2131 times since Mon, Jan 25, 2016
Nagios XI - Receiving SNMP Traps From Nagios Network Analyzer
Viewed 2942 times since Mon, Oct 17, 2016
Nagios XI - Configuring Global Event Handlers
Viewed 2652 times since Wed, Jan 27, 2016
NRDP - Configuring SSL/TLS
Viewed 3889 times since Mon, Jul 3, 2017
Nagios XI - BPI XML Cache
Viewed 2284 times since Thu, Mar 9, 2017
Nagios XI - High Availability and Failover Solutions for Nagios XI - NWC14
Viewed 3919 times since Thu, Feb 4, 2016
Nagios XI - Setup Nagios XI to Send SMS Alerts
Viewed 3982 times since Thu, Jan 28, 2016
Nagios XI - Using The Config Import Prep Tool
Viewed 7057 times since Thu, Jan 28, 2016
Nagios XI - MySQL/MariaDB - Max Connections
Viewed 17077 times since Thu, Jun 2, 2016