CPU alert for Windows Server 2012

When my CPU reaches 90%, I would like to set up an email alert, what are the steps?
vharripersadAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TemodyPickalbatros, IT ManagerCommented:
You can use Microsoft Assessment and Planning Toolkit
Free and you can monitor and management with many features
http://www.microsoft.com/en-us/download/details.aspx?id=7826
0
Robin CMSenior Security and Infrastructure EngineerCommented:
Set up a PerfMon data collector set and get it to write an event as the alert action:
https://technet.microsoft.com/en-us/library/cc722414.aspx
Then set a trigger on that event and get that to run a script to email you.

Or you could run a small PowerShell script in the background, possibly launched via a scheduled task, something like:
while($true){
  if((Get-Counter -Counter "\Processor(_Total)\% Processor Time").CounterSamples.CookedValue -ge 90){
    Send-MailMessage -Body "CPU is over 90%, check it out" -From "yourserver@yourdomain.com" -SmtpServer "smtpserver.yourdomain.com" -Subject "CPU high on yourserver" -To "you@yourdomain.com"
  }
  Start-Sleep -Seconds 5
}

Open in new window

1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.