Script needed for disk space alert..........

I use SQL Server 2005 environment. I was wandering if i can get a script that will email me if any of the disk on the server exceeds 80% (is 80% full). The drives on the server are C, D, E FOR DATA FILES, L FOR LOG FILES AND Z.
so can someone send me some good scripts that will send an alert if the disk space gets full to 80%.
LVL 1
espanolanthonyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RiteshShahCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
espanolanthonyAuthor Commented:
I created the SP but i got a warning message below.

The module 'SpDiskSpaceAlert' depends on the missing object 'msdb..xp_send_dbmail'. The module will still be created; however, it cannot run successfully until the object exists.


any idea how to get rid of this?
0
RiteshShahCommented:
seems like script is working, please stop it, you might not have changed email address, I got approx 30 emails
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

espanolanthonyAuthor Commented:
at first instance instead of parsing i pressed execute and that is why that happened.  
but any idea about the error.
and it also says
(2 row(s) affected)

but doesn't send the email.
0
RiteshShahCommented:
see the list of emails I have received.

ee.JPG
0
espanolanthonyAuthor Commented:
any idea????
0
espanolanthonyAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.