I am trying to run a alert message to show the PRI Trunk % utilization > 80%. I am having trouble getting the right variable to report the % Utilization against the nodes. My custom SQL variable would pick the first value returned from many lines which is not necessarily for the node I am alerting. Can some one help?
Is it possible to run this from a SAM Monitor and alert for the statistic threshold?
Trigger Condition:
SELECT VoipGatewayEndpointAlertsAggregateLast1Hour.VoipGatewayEndpointID, VoipGatewayEndpointAlertsAggregateLast1Hour.IfName FROM VoipGatewayEndpointAlertsAggregateLast1Hour
Where VoipGatewayEndpointAlertsAggregateLast1Hour.MaxUtilization > 80
Message:
The PRI ${N=SwisEntity;M=IfName} on gateway ${N=SwisEntity;M=VoipGateways.SysName} has hit ${SQL: SELECT MaxUtilization FROM VoipGatewayEndpointAlertsAggregateLast1Hour where MaxUtilization > 80}% utilisation at ${N=Generic;M=DateTime;F=DateTime}