Live monitoring of directory size with notifications
When I set up my current MythTV server, one of the optimizations I implemented was to move the /tmp directory to a RAM disk. This has generally worked well, but recently I've had a few /tmp directory blowups where things stopped working because the size of /tmp got too big and everything started failing.
Since this happens so rarely and I'd like to diagnose the problem, I want to set up a way of being notified when /tmp gets to, say, 80% full so I can check on it and see what is filling it up before it fails.
I was investigating iwatch and inotify, but couldn't figure out how to get them to tell me if a directory was getting full.
So if anyone has suggestions for monitoring a directory's size so I can get a notification when it crosses a threshold, I would be very appreciative.
|