Section: Applications/System (8), Updated: 0.2
disknag - Monitor a directory with per-user entries and report findings.
disknag [-c location] [-d]
Disknag is a small "virtual quota" application for monitoring locations with per-user entries and logging the findings in syslog. It also has a feature of notifying the user if they are found over their limit for a set number of days. Then, if the user didn't correct themselves in time, a message will be sent to the administrator about the problem.
This is useful for things like user inboxes or public_html directories if they are stored outside of the user's HOME. Putting quota limitations on user inboxes can be tricky, since you don't want to lose data or cause inbox corruption if the hard quota is hit.
It is important to note that this isn't a real quota application. When you specify a directory in the config file, disknag will only check the owner of each top-level subdirectory, and assume that all files in it will be owned by the same user, so it's pretty limited. It is, effectively, a du(1) with style.
It is probably unwise to use this on huge amounts of data, as it will cause quite a bit of disk thrashing during each run, and if you have gigabytes upon gigabytes, you will routinely max out the disk IO.
disknag
disknag -c my.conf -d
Konstantin Ryabitsev <icon.at.linux.dot.duke.dot.edu>
du(1)
Apache/2.0.52 (CentOS) Server at linux.duke.edu Port 80Name Last modified Size Description
Parent Directory -
SHA1SUM.asc 20-Apr-2005 16:17 297
disknag-0.3-1.src.rpm 20-Apr-2005 16:17 10K
disknag-0.3.tar.gz 20-Apr-2005 16:17 7.2K
old/ 20-Apr-2005 16:17 -
rpm-key.asc 20-Apr-2005 16:18 1.4K