Hi,
Instead of getting InErrorThisHour which have been provided on system, I am trying to get the InError every 5 minutes from table InterfaceErrors_Detail
Here is my custom sql alert:
SELECT
Interfaces.InterfaceID AS NetObjectID,
- Interfaces.FullName AS Name
FROM Interfaces INNER JOIN InterfaceErrors_Detail ON Interfaces.InterfaceID=InterfaceErrors_Detail.InterfaceID
/*SplitMarker*/
WHERE
(
(InterfaceErrors_Detail.In_Errors <> 0) AND
(DateTime > dateadd(minute, -5, getdate())) AND
(
(Interfaces.Critical = 1) OR
(Interfaces.ExchangeData = 1))
)
It works as a trigger...
Now I need to get the InterfaceErrors_Detail.In_Errors value on the action alert i.e. on the email sent or log to file.
Any guru can help?