Have you ever creating custom monitor on SCOM 2007 R2 to grab specific event ID on Windows Server event viewer ? example if Server1 has event ID 1000 with severity critical/error it will generate alert to SCOM. If you don’t know how to to create it, read about it : http://technet.microsoft.com/en-us/library/bb309597.aspx/

So the next question is how to test it ? Confused smile wait until the event come ? boring..Sarcastic smile

The answer is create your own event to repro the alert, the link said we can create by using EventCreate.exe, but I’m using Logevent.exe , you can download it here.

Like the example, execute this command :

logevent.exe -m \\krisnais-nb02 -s W -c 100 -r "my event" -e 2915 "Event Created!”

image

Check your event viewer and there it is! Open-mouthed smile

image

Advertisements