Low Disk Space Alert Windows Server 2008

Configure a Low Disk Space Alert by Using the Performance Logs and Alerts Feature in Windows Server 2008

1) Create a schedule task

Obrázek

Obrázek

2) Create  user defined collector set

Obrázek

Obrázek

select counter

Obrázek

directory should contains “\”

Obrázek

Obrázek

Obrázek

3) set data collector properties

Obrázek

the name of the schedule task

Obrázek

‘alert.vbs
Set objEmail = CreateObject(“CDO.Message”)
objEmail.From = “server@domain.cz”
objEmail.To = “alert@domain.cz”
objEmail.Subject = “srv Disk C:\ *LOW* space #WARNING#”
objEmail.Textbody = “srv Disk C:\ *LOW* space #WARNING# – ALERT value, free space is under 2%”
objEmail.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
objEmail.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = _
“mailer.domain.local”
objEmail.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”) = 25
objEmail.Configuration.Fields.Update
objEmail.Send

 

These steps may not to be the best practice.