Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Monitoring Disk Space Using an Alert - Part 2

$
0
0

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


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>