Issues creating alerts in Performance Monitor

  • 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

  • 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

  • Yes. I am interested.

  • 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

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply