I have my alert working with the following code:
SELECT * FROM __InstanceModificationEvent WITHIN 300 WHERE TargetInstance ISA 'Win32_LogicalDisk' AND TargetInstance.FreeSpace < 3221225472 AND TargetInstance.DeviceID= "D:"
A manager asked me the following questions:
Is it possible to do the threshold based on percent free instead of GB free?
Also, is it possible to alert on the percent free inside of a datafile(s)? (Taking into account the maximum file size allowed for autogrowth.)
Can anyone help me with the answers? I am new to WMI Event Alerts.
lcerni