Deleting files to save disk space

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
xi_whipping_boy
Posts: 4
Joined: Thu Nov 17, 2022 10:19 am

Deleting files to save disk space

Post by xi_whipping_boy »

Question about Nagios XI 5.9: I want to create a bash script to routinely delete files that are safe to delete rather than extending my disk. Does anybody out there have some advice on that?
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Deleting files to save disk space

Post by gormank »

Look at the nagios logrotate config in /etc/logrotate.d
Look at files in /usr/local/nagios/var and/or /usr/local/nagiosxi/var for logs that aren't rotated or kept too long.
Create another logrotate file and add rules from what you found above.
Post Reply