| I am trying
too monitor services using MOM SP1. I have setup a computer group and a
rules processing group. How do I now go about setting up a rule to monitor
the status of a service and alert me if it stops or hangs?
Contributed
By: Baelson Duque [MSFT]
How do you want
to monitor the services? Do you want to monitor when services fail? Or
when it simply changes state? Here's an example of setting a rule to use
WMI Subscription to send you an alert when a service stops.
-
Create an EPR to
process an event, and click "New..."
on the Provider Settings section.
-
Choose "WMI
Events",
give this WMI Event Provider a name, use "root\cimv2"
as your namespace, and your query should be follows:
--
SELECT *
FROM __InstanceModificationEvent WITHIN 30
WHERE (TargetInstance ISA 'Win32_Service')
AND (TargetInstance.State = 'Stopped')
--
Leave the Property List blank and click OK.
-
Finish up the rest
of the wizard and make you have it generate an alert.
Now when any service changes to the Stopped
state, you'll get a Alert for it.
|