Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Disk space alert per drive

By Sven Goossens, 2011/12/06

When executing this script, it will create the stored procedure: usp_DiskSpaceAlert

Now you can create little jobs to check the available diskspace for 1 drive (so by adding more steps in the job, you can check all disks depending other parameters).

Variables:

- MinMBFree = triggeramount of free disk space

- Drive = diskdrive to check

- RCPT = emailaddresses of recipients

For example:

EXEC dbo.usp_DiskSpaceAlert @MinMBFree= 3072, @Drive='C', @RCPT='someone@mail.com'
GO

--> a more readable version is posted in the discussion: http://www.sqlservercentral.com/Forums/Topic1206274-3054-1.aspx

--> setting up database mail (SQL2005/2008): http://www.kodyaz.com/articles/sql2005-database-mail.aspx

Total article views: 2616 | Views in the last 30 days: 49
 
Related Articles
ARTICLE

Drive

What motivates people? What makes them happy at their jobs? Steve Jones talks about Drive, the book ...

FORUM

Drives are invisible ???

Drives are invisible ???

FORUM

Logical Drive

Physical Drive

FORUM

Whoops there goes more drive space

Drive space keeps disappearing

FORUM

Restore database from network drive

Restore database from network drive

Tags
alerts    
disk    
drive    
mail    
space    
storage management    
warning    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones