|
Anunta-ma daca spatiul pe disk este plin |
|
|
Scris de Cypress
|
|
Saturday, 15 December 2007 |
#!/bin/sh
# Shell script to monitor or watch the disk space
# It will send an email to $ADMIN, if the (free avilable) percentage
# of space is >= 90%
ADMIN="
Aceasta adresa e-mail este protejata impotriva spamului, JavaScript trebuie activat pentru a putea vizualiza pagina.
"
# set alert level 90% is default
ALERT=90
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output;
do
#echo $output
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
partition=$(echo $output | awk '{ print $2 }' )
if [ $usep -ge $ALERT ]; then
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |
mail -s "Alert: Almost out of disk space $usep" $ADMIN
fi
done
|
Enemy Territory: Quake Wars Demo pentru Linux
Mi-am instalat ETQW si QUake 4 versiunil...
5 browsere alternative (la alternative)
Safari e derivat din Konqueror (sau ma e...
5 browsere alternative (la alternative)
Exista Safari pentru... Linux?
Ubuntu 8.10 Alpha 1 Screenshots
Imi pare rau sa constat ca nou venitii i...
E greu sa inveti
multzam fain asta a fost poanta zilei :...
Ubuntu 8.10 Alpha 1 Screenshots
"Ce nici o distributie de linux nu p...
Ubuntu 8.10 Alpha 1 Screenshots
Timpul de instalare NU este relevant. Va...