Create performance counter alert and send email when the alert is triggered
This article provides the steps to create performance counter alert and send email when the alert is triggered.
Applies to: Windows Server 2012 R2
Original KB number: 2424491
Step 1: To configure alert actions
Expand Reliability and Performance in the navigation pane.
Expand Data Collector Sets, expand User Defined, and click the name of the Data Collector Set with performance counter alerts.
In the console pane, right-click the name of a Data Collector whose type is Alert and click Properties.
On the Data Collector Properties page, click the Alerts tab. The data collectors and alerts already configured should appear.
Click the Alert Action tab to choose whether to write an entry to the event log Applications and Services Logs/Microsoft/Windows/Diagnosis-PLA/Operational when the alert criteria are met. You can also start a Data Collector Set when the alert criteria are met.
Click the Alert Task tab to choose a Windows Management Interface (WMI) task and arguments to run when the alert criteria are met.
Step 2: Create a task in task scheduler
Click start Administrative tools>Task Scheduler.
Right-click Task Scheduler Library-select create task.
Enter the task name.
check the box for Run with highest privileges.
Select Action tab and select New.
In the New Action window under Action, select Send an e-mail.
Fill the email details and click ok.
Go to the properties of the DataCollector Set that we created in step 1
select Alert Task and type the task name that we created in step 2.