Hello,
I have a custom alert that triggers when fixed disk space changes by 10% over a 2 hour period. The alert works great! The only problem is that we cannot identify if the change was because 10% disk space was consumed or made available. + or -
Trigger:
LEFT JOIN VolumeUsage_Detail V
ON Volumes.VolumeID = V.VolumeID
AND Volumes.VolumeType = 'fixed disk'
AND DATEDIFF(HH,DateTime, GETDATE()) < 2
GROUP BY Volumes.NodeID, Volumes.VolumeID, Volumes.FullName
HAVING MAX(PercentDiskUsed) - MIN(PercentDiskUsed) > 10
Alert message body:
An issue on an object you are monitoring occurred at ${N=Alerting;M=AlertTriggerTime;F=DateTime}.
Server: ${NodeName}
IP: ${Node.IP_Address}
Volume: ${SQL:Select Substring ('${Caption}',1,3) AS Caption}
Volume Size: ${SQL:Select CAST( ROUND (${VolumeSize}/1048576, 0) AS Decimal(18,0)) AS Gigabytes} MB
Space Available: ${SQL:Select CAST( ROUND (${VolumeSpaceAvailable}/1048576, 0) AS Decimal(18,0)) AS Gigabytes} MB
Percent Available: ${N=SwisEntity;M=VolumePercentAvailable}
Volume Graph: ${VolumeDetailsURL}
This message was brought to you by the alert named: ${N=Alerting;M=AlertName}
Actual alert message:
An issue on an object you are monitoring occurred at Wednesday, February 08, 2017 8:30 PM.
Server: Server1
IP: 192.168.1.10
Volume: F:\
Volume Size: 307197 MB
Space Available: 112760 MB
Percent Available: 37 %
Volume Graph: SWServer:443/.../View.aspx
This message was brought to you by the alert named: Disk change 10% in 2 Hrs
I need either two triggers or something in the alert message body that indicates if it was an + or -.
Thanks in advance!