Monitoring for single locked out user accounts is well documented here, mostly using the Windows Server 2008-2012 Domain Controller Security Template, but I'm more interested in the scenario where there's an issue with an application, or even a domain controller, that results in many AD user accounts being locked out around the same time. The idea is to be proactive and look into the root cause before our Helpdesk creates a P1 due to all the calls coming in from users.
Is there a template for this, or can I work the logic into the alert for the component down of the template mentioned above so that it alerts only if the component goes down (an account is locked out) a certain number of times within a time period? For instance, email me when there are 5 accounts locked out within 15 minutes.