SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Issues creating alerts in Performance Monitor


Issues creating alerts in Performance Monitor

Author
Message
Adam Durr
Adam Durr
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 884
I am trying to setup some performance monitor alerts in Windows Server 2008 to run a powershell script to notify me of issues. I have some various SQL Server counters and I cannot get my script to run when the alert gets triggered. Perfmon seems to have changed from Windows Server 2003. It has been really hard to find any documentation on this online.

From my research it seems that you cannot have perfmon alerts execute scripts anymore and you have to use WMI commands. This is from the msdn documentation. Can anyone confirm if this is true. I do not believe Microsoft would have removed functionality for running scripts off of alerts, but I cannot find this anywhere in Windows Server 2008.

Adam Durr
Remote DBA support
www.bluegecko.net
Adam Durr
Adam Durr
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 884
I found a solution. I thought I would post it here since this has taken me a few weeks off and on to fix.

In Windows Server 2008 you must first create a windows scheduled task that executes the file. Under performance monitor, in your data collector you specify the task name there. If anyone is having this same issue I can go into more details.

Adam Durr
Remote DBA support
www.bluegecko.net
Pei Zhu-415513
Pei Zhu-415513
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1694 Visits: 4117
Yes. I am interested.
Adam Durr
Adam Durr
SSC-Addicted
SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)SSC-Addicted (437 reputation)

Group: General Forum Members
Points: 437 Visits: 884
Sorry for taking so long to post back. Creating an alert in Windows Server 2008 requires you to first setup a windows scheduled task and also a performance counter. In performance monitor you create a new data collector and add an alert. You can specify different counters in your alert. I added logical disk counters to measure the % free disk space for each of my drives on the server. Then specify any necessary requirements like trigger the alert if the disk space goes below %15. Switch over to the action tab here is where it differs slightly from Windows Server 2003. In 2008 your action is the name of a windows scheduled task. So if you have a powershell script or vbscript you need to add that to a windows scheduled task. This task doesnt need a schedule associated with it. Then in your action you type in the name of the scheduled task and your done. This probabnly should be written up in an article to explain it better. If there is a specific question that you have let me know.

Adam Durr
Remote DBA support
www.bluegecko.net
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search