| Home »
Categories »
Multiple Categories |
Nagios XI - Mass Delete Old RRD Files |
|
Article Number: 854 | Rating: 1/5 from 1 votes | Last Updated by tlea on Tue, Sep 10, 2019 at 5:02 PM
|
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.
Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!
|
|
|
Have a question? Try our Forums! | Give Feedback |
1 (1)
Article Rating (1 Votes)
Rate this article
|
| |
|
Attachments
There are no attachments for this article.
| Related Articles 
Nagios XI - Creating Nagios XI Wizards
Viewed 19818 times since Tue, Feb 3, 2015
Nagios XI - Changing The System Time
Viewed 10931 times since Mon, Jan 25, 2016
Nagios XI - Performance Data Averaging
Viewed 10748 times since Mon, Nov 6, 2017
Nagios XI - Using rrdcached with Nagios XI
Viewed 8082 times since Thu, Jan 28, 2016
Nagios XI - SNMP Trap v3 Configuration
Viewed 38837 times since Tue, Nov 13, 2018
Nagios XI - Managing Components
Viewed 6706 times since Wed, Jul 19, 2017
Nagios XI - How to Change Default Passwords
Viewed 12077 times since Wed, Jan 27, 2016
|
|