I am creating an alert with a custom SWQL query variable in it and I cannot get the actual data to show up. Here is my SWQL variable:
${N=SWQL;M=SELECT I.NodeID, I.InterfaceID, I.Name, N.NodeID, ICP.ifCustName, ICP.ifCustID
FROM Orion.NPM.Interfaces AS I
INNER JOIN Orion.Nodes AS N
ON I.NodeID = N.NodeID
INNER JOIN Orion.NPM.InterfacesCustomProperties AS ICP
ON I.InterfaceID = ICP.InterfaceID
WHERE I.NodeID = ${N=SwisEntity;M=NodeID} AND ICP.ifCustID > '1'}
This is supposed to be grabbing all interfaces on the defined NodeID that have a customer ID in it and display the 'ifCustId' and 'ifCustName'. This works fine in both SWQL Studio and SQL (when I convert it to SQL), but in the Advanced Alerts, the only output I get is the actual Node ID, not the table of useful data I am looking for. Can variables be called from within an SWQL query in the advanced alert? A cursory search of previous posts indicates this shouldn't be a problem, but idk. Is there an issue with how my query is set up? This is a Node alert, by the way, so I am not sure if that makes a difference.