I am monitoring blocking on Microsoft SQL Server via WMI. It is working, but we only want the trigger to fire if a process has been blocking for 5 minutes or more. Here is the trigger definition that I'm using:
{Template_Microsoft_SQLServer_2005
erf_counter["\SQLServer:General Statistics\Processes blocked"].max(180)}>0
This works, but it seems to send an alert AFTER 5 minutes, not if process(es) were actually blocked FOR 5 minutes. So something gets blocked for 1 minute, then becomes unblocked, and then a few minutes later the trigger fires - very annoying.
What am I doing wrong here..?
{Template_Microsoft_SQLServer_2005
erf_counter["\SQLServer:General Statistics\Processes blocked"].max(180)}>0This works, but it seems to send an alert AFTER 5 minutes, not if process(es) were actually blocked FOR 5 minutes. So something gets blocked for 1 minute, then becomes unblocked, and then a few minutes later the trigger fires - very annoying.
What am I doing wrong here..?
Comment