Configure a Low Disk Space Alert by Using the Performance Logs and Alerts Feature in Windows Server 2008
1) Create a schedule task
2) Create user defined collector set
select counter
directory should contains “\”
3) set data collector properties
the name of the schedule task
‘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.