Nagios XI - Mass Delete Old RRD Files |
Mass Delete Old RRD FilesThis 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
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: |
Posted by: tlea - Tue, Sep 10, 2019 at 5:02 PM. This article has been viewed 4820 times. |
Online URL: https://support.nagios.com/kb/article/nagios-xi-mass-delete-old-rrd-files-854.html |
Powered by PHPKB (Knowledge Base Software)