Hi, we are looking to implement some sort of check on our Debian machines to monitor growth of disk use over a period of time; Ideally this would be monitoring the average growth over one or more time periods (like say, growth in the last 10 minutes, hour, and 12 hours), and alert if the growth is above a certain percent.
Example:
if /home increases by 25% in a 30 minute time-frame, send a warning, as it could continue at this rate and fill the disk. This could notify of trends and allow admins to deal with issues before they reach regular warning / critical levels.
I haven't been able to find any information on this, it seems like a fairly complicated task and might involve time stamps?
Any information would be greatly appreciated.
Thanks
-- Help with disk growth monitoring
Re: -- Help with disk growth monitoring
This actually wouldn't be terribly hard in a custom script, all you would essentially need to do is:
-capture the current disk usage
- write this to a tmp data file somewhere
- At the next check_interval, capture disk usage again, compare to previous check, divide to get the percentage
- write the new disk usage to file
-capture the current disk usage
- write this to a tmp data file somewhere
- At the next check_interval, capture disk usage again, compare to previous check, divide to get the percentage
- write the new disk usage to file