-- Help with disk growth monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
effekt01
Posts: 1
Joined: Tue Mar 29, 2011 4:57 pm

-- Help with disk growth monitoring

Post by effekt01 »

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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: -- Help with disk growth monitoring

Post by mguthrie »

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
Locked