How to create an alert when the disk usage of a volume grows say 10GB in 5 mins? Is this possible using a SWQL query or the like even?
Hi @shocko! You can probably generate an alert using a SWQL condition similar to the 100% Disk capacity out-of-the-box alert. That condition is "DayDiff(getdate(), datastores.DepletionDate)<7". That condition coupled with capacity forecasting could get you the result you're looking for. Hope this helps getting started!
I made something like that last year. You can look here: https://thwack.solarwinds.com/t5/Alert-Lab-Discussions/Alerting-on-Volume-Growth/m-p/316517/highlight/true#M4568
Or try this copy-n-paste from what I wrote there:
SELECT Volumes.FullName, Volumes.VolumeID FROM VolumesInner join [dbo].[VolumeUsage_Detail] D on Volumes.VolumeID=d.VolumeIDwhereD.datetime>Dateadd(HOUR,-2,Getdate()) -- In how many hoursAND Volumes.VolumeTypeID=4group by Volumes.FullName, Volumes.VolumeIDHAVING Max(D.PercentDiskUsed)-Min(D.PercentDiskUsed)>10 -- Growth to look for in percent
Adjust hours and percent growth as you want.
(By default orion polls volume usage every 10 min so that would be minimum time if you don't change that.)