Avete mai notato che la velocità del computer è sempre inversamente proporzionale alla fretta di chi lo sta usando?

— Sergio Boarina

Space disk monitor

http://www.stenoweb.it/files/blog/diskusage.png If the servers to be monitored are many, can be difficult sometimes to control disk usage of all. Here we show a handy script found in the Ubuntu forums that help us by sending a simple e-mail if disk usage exceeds, for example, 90%.

Create script

We create the script:

sudo nano /usr/bin/diskusage

and write this:
df -H | grep -vE '^Filesystem|none|cdrom' | awk '{ print $5 " " $1 }' | while read output;
echo $output
usep=$(echo $output | awk '{ print $1}' | cut -d'%' -f1 )
partition=$(echo $output | awk '{ print $2 }' )
if [ $usep -ge 90 ]; then
echo "Running out of space \"$partition ($usep%)\" on $(hostname) as on $(date)" |
mail -s "Alert: Almost out of disk space $usep%" youremailaddress@gmail.com

replace youremailaddress@gmail.com with our email address, and remember also to make the script executable:
sudo chmod +x /usr/bin/diskusage

Using the script

Then, make add an entry to our root crontab:

sudo crontab -e

to run this daily:
10 0 * * * /usr/bin/diskusage

Well. If the usage of any of the mounted partitions exceed 90%, we receive an email like this:
Subject: Alert: Almost out of disk space 90%

Running out of space "/dev/sda1 (90%)" on myserver as on mar dic 14 16:58:23 CET 2010

The expert skier premier taxis in blackpool yyou always want to learn more
about the same amount of partnership working to find their
office space or equipment. Spending 10 minutes before a workout program right now.
How the drug, it is easier too sleep, one or first come first served.

I pay less than THREE QUID a month!

The web design part concentrates not only
on graphic and website design but in addition on industrial and workspace design.

Hi there it's me, I am also visiting this web site regularly, this web site is really fastidious and the visitors
are actually sharing fastidious thoughts.

The senate also passed the bill with a vote of 29-0. For daytime fun, the main beach
of Playa de las Americas is where the party people go to recharge their batteries before
the next clubland assault and when the sun goes down you
can head to Enramada Beach near La Caleta, where Chiringuito Beach Club hosts parties at the weekend.

This special edition and super affordable Christian Bautista CD is the

To deterine her style, just take note of howw she acts, especially
around her friends. The basics of diamond selection derive from a rating scale which can be also known as tthe "four C's. Wedding rings are supposed to be worn on a daily basis until your last breath.

Excellent post however , I was wondering if you could write a litte more on this subject?
I'd be very grateful if you could elaborate a little bit more.


Great article I enjoyed this reading so much!
Thank you!

What a stuff of un-ambiguity and preserveness of valuable experience concerning
unpredicted feelings.

I will not even know the way I stopped up on this site, but
I thought this publish used to be great. I tend not to realize who you might be however definitely you're seeing a famous blogger
for individuals who aren't already. Cheers!

Quality articles may be the main to be considered a
focus for the users to visit the website, that's what this site is providing.

Heya i'm for the primary time here. I discovered this board and that i
in finding It truly helpful & it helped me to out a great deal.
I'm hoping to supply one thing back and aid others like you
helped me.

Asking them questions are the truth is good thing should you be not understanding
anything totally, but this paragraph gives good understanding yet.

magnificent points altogether, you simply received a brand new reader.
What might you suggest in regards to your submit that
you simply made some days ago? Any sure?

My brother suggested I might like this blog. He was totally right.
This post truly made my day. You cann't imagine just how much time I had spent for this
information! Thanks!

Wow, incredible weblog format! How long have you ever been running a blog for?
you make blogging glance easy. The overall look of your web
site is magnificent, let alone the content material!