How to Configure Alerts in Server 2008?
Hi,
In Server 2003, I configured alerts to run specific VBScripts when the thresholds of certain counters were exceeded (the scripts sent emails). I'm having trouble configuring this in 2008. I found a step-by-step guide from Microsoft on performance monitoring, but it did not speak to Alerts very much. The help files were also not helpful. Anyone know of a better guide?
Here’s what I tried to do:
I configured a new User Defined Data Collector Set to use Performance Counter Alerts, added the counters and thresholds, configured Alert Action to Log an entry in the application event log & start a data collector set, and added Alert Task to run C:\WINDOWS\system32\cscript.exe with Task argument C:\SCRIPTS\myscript.vbs. I tried to test it by configuring the LogicalDisk(C: )\%Free Space counter to alert when Above 1 with a 10 second sample interval. I started the User Defined Alert, but I did not get any results. I did not even see an entry in the Application Event Log. I also added the counter \Processor(_Total)\% Idle Time to Above 1, but still did not get any results. I verified that these counters were reporting that the values were above 1 in Performance Monitor.
Any help would be appreciated.
Thanks,
Steve
Todas las respuestas
- Steve,
Did you ever fnd a resolution to this? I am having the same problem and the most I have been able to work out is that you need to run a WMI task and not a command line task. I know a bit about WMI but I am not sure how to create a "task" that I would run from the DataCollector - Nope, you are the first to respond. That's good info though. It's also good to know it's not just me. I'll check it out this week.
Thanks,
Steve - Everything ok, but the step that you enter your script as a task directly.
First of all plan a task using the task planning tool. Do not define any trigger but only an action. In your case it is starting your script. Define which user will be running the task and give a name for the task.
In the alert you enter the name of your planned task.
That's it. - Hi Steve,
here is everything you want
http://technet.microsoft.com/en-us/library/cc722414.aspx
Hello, I am having the same problem as Steve with Server 2008 Standard SP1 x86. I have tried creating the alert with both logman.exe and the perfmon GUI. I do not get any entries the Application Log (yes, box is checked). I have followed the above technet article to the letter, but still not entries in the AppLog. Any ideas? This works perfectly in Server 2003, and I was really excited to see that logman could create alerts in 2008. I would love to get this working.- This is a Server 2008 R2 forum. I may try to find the time to test this on R2, but this should be re-asked in a general server forum.
- Please re-open this issue and respond if you can. I have now been testing this on R2 build 7100, and I'm having the same problem. No SysmonLog entries in the Application Log. :(
- I've not closed the issue. Build 7100 is the RC build, and not RTM. I may try to load RTM later this week, as I'm running the RC also.
- I will also try the RTM version as soon as I receive an iso. Thank you for any assistance!
- Ok, I just tested this in Server 2008 R2 RTM. Same problem. I am not getting any alerts in the Application Log.
- I guess I will open a support request with Microsoft. :|
- I'm sorry "marklanc"... I can try to load the RTM tonight and see. Even if I confirm the issue, there's not a whole lot I can do, but to try to provide a workaround.
- Even a confirmation of broken functionality would be helpful. Thanks!
- Propuesto como respuestaEH1000 lunes, 12 de octubre de 2009 11:20
- Hi,
I also had the same problem, but the Technet Article http://technet.microsoft.com/en-us/library/cc722414.aspx states that the event will be logged under Applications and Services Logs/Microsoft/Windows/Diagnosis-PLA/Operational and as it looks like not in the Windows Logs\Application log file. At least it worked like this in my W2008.
Hope this helps
Edith - I have been having the same issues on R2 as Steve reported.
Edith's response regarding "event will be logged under Applications and Services Logs/Microsoft/Windows/Diagnosis-PLA/" was helpful - I did find the events showing up there, so at least I know that part is working. Now I can see vague error messages there when I attempt to run cscript to send the emails. If I do not attempt to use cscript, then the alert succeeds albeit without sending an email. As soon as I add the cscript bit again, it alerts fine and bombs on triggering the alert task (cscript).
The TechNet article referenced here several times (http://technet.microsoft.com/en-us/library/cc722414.aspx) states "Click the Alert Task tab to choose a Windows Management Interface (WMI) task and arguments to run when the alert criteria are met" ... does this mean cscript is not an option anymore? Does this mean it the alert can only trigger a WMI task?
Any guidance is appreciated.