Deleting files to save disk space
-
- Posts: 4
- Joined: Thu Nov 17, 2022 10:19 am
Deleting files to save disk space
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
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.
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.