----------------------
#!/bin/sh
THING=`df -H | head -3 | tail -1 | awk '{print $4}' | sed 's/\(.*\)./\1/'`
# echo $THING
if [ $THING -gt 55 ]; then
echo 'Greater than 55'
else
echo 'Lower than 55'
fi
------------------------
That's ugly shell scripting, I'm rusty, probably could have narrowed
down the programs involved, but if you stuck that in a crontab with
something more useful than the echo statements (like opening up a
browser window next time they logon, unless they are logged on), that
should solve the problem. "You are running low on disk space. Please
contact the byteworks support staff" or some such. Not sure if "/" is
the 3rd line of df's output everywhere, it is on my Ubuntu 8.0.4. My
awk teacher would have yelled at me for not doing it all in one line
of AWK, but that was years ago.
55%'s probably not where you'd want them calling anyway, but you get the gist.
Shouldn't it be pretty easy to throw this in without disrupting much?
-S