SELECT E0.Node.Caption , E0.Caption FROM Orion.Volumes AS E0 WHERE E0.Node.Caption = 'Node1' AND E0.Caption = 'VolumeName' AND (E0.VolumeSize < ( SELECT E0.VolumeSize FROM Orion.Volumes as E0 WHERE E0.Node.Caption = 'Node2' AND E0.Caption = 'VolumeName' ))
In Orion SWIS Query, this query correctly pulls the node & volume if Node1's volumesize is less than Node2's volumesize (volumes have the same name across nodes).
However, when I put this into the custom SQL trigger condition, I am provided with "Query Condition is not valid".
This is an alert to alert on a scheduled clone job. If originating volume is consuming more than destination volumes have sized, clone will fail.
The end goal here is to build out alerts for when NodeA's volume has more space used than NodeB,C, D..etc's volumes have size/allocated. But, I figured I'd start with a simple size comparison to avoid mismatch issues.
Can anyone provide information/example on how to use the custom SWQL editor for trigger conditions in an alert? It seems it plays more finicky than normal SWQL builders within alerts/widgets. For starters, simply getting this script working in the conditions of an alert would be fantastic! If there is a better method to compare size vs space used between different nodes in SAM, I would take that as well.