In this blog post I am going to take you true the steps that I took to create a Unit Monitor.
A Unit Monitor measures aspects of an application. The monitor can be checking a performance counter tot determine the performance of an application, running a a script to perform a Synthetic transaction, or watch for an event that indicates an error or warning.
I’m going to create a unit monitor using the SMS-Passcode event log based on Unhealthy Event 150 (SMS-Passcode: Modem has been blacklisted and will not restart automatically anymore) and the Healthy Event 202 (SMS-Passcode: Modem Initialization successful (COM 3))
- Start the "System Center Operations Manager Console"
- In the "System Center Operations Manager Console", click the "Authoring"
- On the "Authoring" pane, expand "Authoring", expand "Management Pack Objects", and the select "Monitors"
- In the "System Center Operations Manager console", in the "Tasks" pane click "Create a Monitor"
- Select the "Unit Monitor"
- On the "Create a unit Monitor" wizard, on the "Monitor Type" page in the section "Select the type of monitor to create", expand "Windows Events", "Simple Event Detection" and select "Windows Event Reset". On the section "Management Pack" on the page "Select a Monitor Type" click "New"
- On the "Create a Management Pack" wizard, on the "General Properties" page in the section "Management Pack General Properties", give the management pack a "Name" and click "Next"
- On the "Create a Management Pack" wizard, on the "Knowledge" page click "Create"
- On the "Create a Unit Monitor" wizard, on the "Monitor Type" page click "Next"
- On the "Create a Unit Monitor" wizard, on the "General" page, in the "General Properties" section, give the monitor a "Name" and on the "Monitor Target" line click "Select
- In the "Select Items to Target" wizard, select "Window Computer" and click "OK"
- On the "Create a Unit Monitor" wizard, on the "General" page, in the "General Properties" section, under "Parent monitor" select "Availability", uncheck "Monitor is enabled" and click "Next"
- On the "Create a Unit Monitor" wizard, on the "Event Log (Unhealthy Event(" page, in the "Specify the event log to read the events from" section, click "…"
- On the "Select Event Log" wizard in the section "Browse or enter computer name", select the computer you want to read the event log from
- On the "Select Event Log" wizard in the section "Available event logs", select "SMS Trans" and click "OK
- On the "Create a Unit Monitor" wizard, on the "Event Log (Unhealthy Event(" page, click "Next"
- On the "Create a Unit Monitor" wizard, on the "Event Expression (Unhealthy Event)" page in the "Filter one or more events" section, behind the "Event ID" enter "150" and behind the "Event Source" enter "SMS Dispatcher and click "Next"
- On the "Create a Unit Monitor" wizard, on the "Event Log (Healthy Event(" page, in the "Specify the event log to read the events from" section, click "…"
- On the "Select Event Log" wizard in the section "Browse or enter computer name", select the computer you want to read the event log from
- On the "Select Event Log" wizard in the section "Available event logs", select "SMS Trans" and click "OK
- On the "Create a Unit Monitor" wizard, on the "Event Log (Healthy Event(" page, click "Next"
- On the "Create a Unit Monitor" wizard, on the "Event Expression (Healthy Event)" page in the "Filter one or more events" section, behind the "Event ID" enter "202" and behind the "Event Source" enter "SMS Dispatcher and click "Next"
- On the "Create a Unit Monitor" wizard, on the "Configure Health" page on the section "Map monitor conditions to health states" change the "First Event Raised" to "Critical" and click "Next"
- On the "Create a Unit Monitor" wizard, on the "Configure Alerts" page on the section "Alert Settings" and select "Generate alerts for this Monitor" and click "Create"
Now that we have created the monitor it’s time to enable the Monitor.
- Start the "System Center Operations Manager Console"
- In the "System Center Operations Manager Console", click the "Authoring"
- On the "Authoring" pane, expand "Authoring", expand "Management Pack Objects", and the select "Monitors"
- On the "Monitors" pane, in the "Look for" input box type "sms"
- Select the "SMS PASSCODE Transmission" monitor, and from the "Tasks" pane click "Overrides", "Override the Monitor" and click "For al specific object of class: System Center Managed Computer (Server OS)"
- On the "Select Object" wizard, search for the computer that you have have SMS-Passcode installed on and click "OK"
- On the "Override Properties" wizard, in the "Override-controlled parameters" section, select "Enable" and change the "Override Value" to "True". Then click "OK".
When the event 150 is raised You will get a warning in the Event-log on the client and in System Center Operations Manager an Alert is generated
When the issue is resolved and event-id 202 is logged in the Event-Log in the the client. The generated Alert in System Center Operations Manager is Automaticaly closed.
hi Roc
good Article….
any link which is useful to configure SQL event alerts in scom 2012
Hi,
You can install the SQL Management pack. https://www.microsoft.com/en-us/download/details.aspx?id=10631 and here you can find how to install and configure it: http://www.ms-opsmgr.eu/?p=557
Greetings Roel Knippen