Page 1 of 1

Deleting files to save disk space

Posted: Thu Nov 17, 2022 1:21 pm
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?

Re: Deleting files to save disk space

Posted: Thu Nov 17, 2022 1:41 pm
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.