Solved

Email alert on CPU utilization exceeeds 80% on a windows 2008 Server using Perfmon

Posted on 2013-05-22
11
5,168 Views
Last Modified: 2013-06-10
I have a client that requires the server installed in his rack to fire off a notification email when the CPU reads 80% of Use.

Please can anyone help me out as I have tried to undertand how to use Perfmon to do this but have been stumped.


I need this like yesterday!
0
Comment
Question by:souldj
  • 6
  • 5
11 Comments
 
LVL 22

Expert Comment

by:Paka
ID: 39188561
Here's a very good article on how to do this for sending an email using vbscript from perfmon:
http://www.petri.co.il/forums/showthread.php?t=48163
0
 
LVL 1

Author Comment

by:souldj
ID: 39188580
the Link provided for 2008 has expired and as such gives no answers..

Configure an Alert in Performance monitor on Windows server 2008 --

This is what I need as it does not work the same way on windows 2003 Server and that is easily found on the net.
0
 
LVL 22

Accepted Solution

by:
Paka earned 500 total points
ID: 39188597
Looks like the link for setting up an alert in W2008 is broken.  Here's how to do this:
Click Start, Run
Type "perfmon" and press enter
Open Data Collector Sets
Open User Defined
Create New Data Collector Set
When wizard starts, select "Create manually...", Next
Select Performance Alert, Next
Click Add, Open Processor
Select % Processor Time
Click Add, OK
Enter 80 in Limit, Next
Finish
Double-click your new data collector set to open it's properties
Click Alert Task tab
Enter your script info from the previous link above
Click OK
0
 
LVL 1

Author Comment

by:souldj
ID: 39189328
What is the Sample Interval supposed to mean?

I have also attached the alert screen to confirm if I have done this correctly.
Screen-Shot-2013-05-22-at-11.05..png
Screen-Shot-2013-05-22-at-11.06..png
0
 
LVL 22

Expert Comment

by:Paka
ID: 39189356
In your case, sample interval is how long the CPU average has to be above your limit.  So if you set a sample interval of 5 min; the CPU average will have to exceed 80% over that interval in order to send an alert.  

Other measurements are point-in-time samples, so the number of messages processed by an email server would be cumulative (not average).  Hope that helps!
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 22

Expert Comment

by:Paka
ID: 39189363
You definitely don't want to use a 1 second sample rate in production for CPU; something like 30 seconds to a minute or two would be better.  If you use that sample rate and you have a fairly busy process, you will receive a lot of alerts!
0
 
LVL 1

Author Comment

by:souldj
ID: 39189378
So , after doing all this and trying to test it, I find that after some time , the collector stops.

Is it not supposed to keep running to monitor for the trigger to send the alert.
Screen-Shot-2013-05-22-at-11.24..png
0
 
LVL 1

Author Comment

by:souldj
ID: 39189390
My Batch file works on its own and fires off an email and also logs a file. But based on the settings above, the test does not effect the alert system, even when i reduce the threshold to 10% for 3 secs.

What could be missing?
0
 
LVL 22

Assisted Solution

by:Paka
Paka earned 500 total points
ID: 39189398
Sorry, it looks like Microsoft now wants us to use task scheduler to send the email alerts.  See this article on the set up of a perf counter and task scheduler task:
http://blogs.technet.com/b/askpfeplat/archive/2012/02/27/taming-perfmon-data-collector-sets.aspx

The piece of missing information in this article is that under the Task Scheduler, Actions tab, you will click the down arrow for Action and select send email.  Fill in the values there and ensure you have a good SMTP server to send to (the very bottom).

If you are using Exchange 2007 or later, you will need to set up a receive connector to allow the Exchange server to receive email from the DC...
0
 
LVL 22

Expert Comment

by:Paka
ID: 39191429
How busy are your servers in production?  To test this reliability, you can use Prime95 to load up your CPUs in a consistent fashion to tell for sure.  Here's the link for Prime95:
http://files.extremeoverclocking.com/file.php?f=205

The article above (using task scheduler) shows how to keep the alert running.
0
 
LVL 1

Author Closing Comment

by:souldj
ID: 39234053
Thanks Paka
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
If you migrate a Terminal Server licenses server inside the 2008 server family, you can takte advantage of the build-in migration tool. If you like to migrate an older 2003 Server (and the installed client CALs) to a 2008 R2 server for example, you …
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now