I post this after one of my customers requirement. He asked me to create a rule that raises an alert if a service in automatic startup mode is stopped.Here is how i did:


-
Enter
root\cimv2 for the WMI Namespace and the following query:
select * from __InstanceOperationEvent within 60 where TargetInstance isa 'Win32_Service' and TargetInstance.StartMode = 'Auto' and TargetInstance.State = 'Stopped'. This query will catch wmi events raised each time a windows service in automatic startup mode enters the stopped state. Enter 60 seconds as the Poll Interval. More info about such WMI queries here





-
To get this value inside our alert description, open the rule we created and open the alert properties. By doing some logic comparison with the built-in parameters available for alert description I established that the following text would return our service's caption: $Data/EventData/DataItem/Collection[@Name="TargetInstance"]/Property[@Name="Caption"]$.


Here is a tip I've been told by Michael Pearson from MS. It allows you to directly start the Web console on a view instead of the Overview page.

-
Open the property of the .url file, modify the URL parameter from javascrpt:onNodeClicked('StateView',%20'e3d720de-f6dd-185c-6fdc-0832377d910a'); to http://WEBCONSOLESERVER:51908/default.aspx?ViewID=e3d720de-f6dd-185c-6fdc-0832377d910a&ViewType=StateView and rename the file

