<img style="max-height:615px;max-width:820px;" alt=" " src="https://us.v-cdn.net/6038570/uploads/communityserver-discussions-components-files/4/pastedimage1740577692697v1.jpeg" />
</code></p><p><code>
SELECT
I.FullName,
I.InterfaceID
FROM
[dbo].[Interfaces] I
INNER JOIN
[dbo].[Nodes] N ON I.NodeID = N.NodeID
INNER JOIN
[dbo].[NodesCustomProperties] NodeProps ON I.NodeID = NodeProps.NodeID
WHERE
I.Status = 1
AND I.Caption = 'ge-0/0/3 - MERKEZ'
AND N.Caption = 'x.x.1 MERKEZ'
AND NodeProps.GECICI_HIZ IS NOT NULL
AND NodeProps.GECICI_HIZ > 0
AND EXISTS (
SELECT 1
FROM [dbo].[InterfaceTraffic] ITraffic
WHERE ITraffic.InterfaceID = I.InterfaceID
AND ITraffic.In_Averagebps > (NodeProps.GECICI_HIZ * 1000000)
AND ITraffic.Datetime > DATEADD(minute, -5, GETUTCDATE())
GROUP BY ITraffic.InterfaceID
HAVING COUNT(*) >= 1
)
</code></p><p><code>
I’m trying to monitor the WAN interface with the caption ge-0/0/3 - MERKEZ on the node 10.x.x.1 MERKEZ.
I have a custom property called GECICI_HIZ (stored in the NodesCustomProperties table, I believe) that defines a temporary bandwidth limit (e.g., 15 Mbps). I want the alert to trigger when the interface’s incoming bandwidth (InBps) exceeds this GECICI_HIZ value (converted to bps, so 15 Mbps = 15,000,000 bps) for at least 5 minutes continuously.
</code></p><p><code>
</code></p><p><code>