LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Utility for Disk Usage / Treesize utility (https://www.linuxquestions.org/questions/linux-software-2/utility-for-disk-usage-treesize-utility-884991/)

teknoratti 06-07-2011 09:20 AM

Utility for Disk Usage / Treesize utility
 
We have a file servers located at remote areas which we want to be proactive in monitoring. Remote users save files into these drives and often times they become full and we have to call the site to ask users to delete their files.

We would like to have a utility that monitors each site file server and alert us when drives become close to full and also give us a Treesize like display of which particular files / folders take up the most space that way we can go straight to the offender of the most usage and let them know they have to delete their files.

Is there one utility that will do this? Right now I'm going to add this into our Nagios setup, then use treesize to look at the specifics but I would like one utility with both features built in.

Thanks

acid_kewpie 06-08-2011 02:53 AM

well you should surely be looking at using quotas to restrict the amount of space they are using? It's simple enough to write a nagios check script which can use a few du commands to see who's using how much space users are using. if it's just a /home/username/ like layout, then you can add additional data onto the nagios output, e.g. from "du /home/* --max-depth=0 | sort -rn | head -n 5" and that would give a list of the 5 heaviest users of disk space. Just one simple suggest though, many many more possible alternatives, quotas being a good one.


All times are GMT -5. The time now is 02:58 AM.