<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Maartendamen&#039;s blog &#187; SCOM</title>
	<atom:link href="http://www.maartendamen.com/category/scom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maartendamen.com</link>
	<description>Blogging on various IT subjects</description>
	<lastBuildDate>Tue, 22 Nov 2011 21:27:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Monitor an Oracle database with a SCOM OleDB watcher</title>
		<link>http://www.maartendamen.com/2010/09/monitor-an-oracle-database-with-a-scom-oledb-watcher/</link>
		<comments>http://www.maartendamen.com/2010/09/monitor-an-oracle-database-with-a-scom-oledb-watcher/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 20:37:13 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[SCOM]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=364</guid>
		<description><![CDATA[In this blog post I will explain how to use an System Center Operations Manager OleDB watcher to monitor an Oracle database. This can be useful to monitor a mission critical application on database availability. It&#8217;s also a cheap solution to just monitor the connection state of an Oracle database, rather then installing an (expensive) [...]]]></description>
			<content:encoded><![CDATA[<p>In this blog post I will explain how to use an System Center Operations Manager OleDB watcher to monitor an Oracle database.<br />
This can be useful to monitor a mission critical application on database availability. It&#8217;s also a cheap solution to just monitor the connection state of an Oracle database, rather then installing an (expensive) third party Oracle management pack. Off course these packs have a lot more monitors then the connection state, but that might not always be an requirement.<br />
To get this done, the following steps must be taken:<br />
<span id="more-364"></span></p>
<ul>
<li>Install Oracle client OleDB provider on the watcher node</li>
<li>Test the Oracle client OleDB provider, and connection to the database</li>
<li>Add OleDB monitoring in SCOM</li>
<li>Add associated runas user profiles</li>
</ul>
<p><strong>Installing the Oracle client OleDB provider on the watcher node</strong></p>
<p>The watcher node can be any machine containing the SCOM agent.<br />
It&#8217;s important to have the right Oracle client version (I used version 11), for 32bit versions use the 32bit Oracle client. For 64bit use the 64bit Oracle client version. Both are available on the Oracle website. If you don&#8217;t use the correct version (e.g. 32bit on 64bit) you might get &#8220;Class unknown&#8221; errors within SCOM.<br />
Start the Oracle installation, on the first step in the installation wizard choose &#8220;Custom&#8221; and click &#8220;Next&#8221;</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb1.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb1-300x225.png" alt="" title="oracle_oledb1" width="300" height="225" class="alignnone size-medium wp-image-365" /></a></p>
<p>On the next page select your favorite language(s), then pick a location for the Oracle client (beware it&#8217;s huge, even for one component)<br />
In the &#8220;Available Product Components&#8221; step select the following component (Oracle Provider for OLEDB: </p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb2.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb2-300x225.png" alt="" title="oracle_oledb2" width="300" height="225" class="alignnone size-medium wp-image-366" /></a></p>
<p>Finish the installation.</p>
<p><em>Note:you also need to setup Oracle&#8217;s tnsnames file, this is beyond the scope of this article. Consult your Oracle DBA.</em></p>
<p><strong>Test the Oracle client OleDB provider, and connection to the database</strong></p>
<p>To test a OleDB connection, you can use a UDL file. This is a connection file, which launches a wizard once you click it.<br />
Use the following steps to create an UDL file:</p>
<p>1. Make sure in Windows Explorer, Tools->Folder Options, View Tab, that “Hide file extensions for known file types” is not checked.<br />
2. Right click on Windows desktop, and select New->Text File.<br />
3. Name the file “Test.udl”. The icon for the file should now be the special “UDL” icon.<br />
4. Double click the file to open the Data Links dialog.<br />
5. Click on the “Provider” tab. Select “Oracle Provider for OLE DB”.</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb3.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb3.png" alt="" title="oracle_oledb3" width="368" height="461" class="alignnone size-full wp-image-367" /></a></p>
<p>6. Click on the “Connection” tab. In the first dialog box (server name) type the oracle service ID (the name defined in the tnsnames file)<br />
7. Specify the credentials (username and password) in the same dialog box.<br />
8. Click &#8220;Test Connection&#8221;, you should now see this embracing message :-)</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb4.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb4.png" alt="" title="oracle_oledb4" width="232" height="144" class="alignnone size-full wp-image-369" /></a></p>
<p><strong>Add OleDB monitoring in SCOM</strong></p>
<p>The next step is to add monitoring to SCOM. Start the SCOM operations manager console and click on &#8220;Authoring&#8221;.<br />
Within this view, click on &#8220;Add Monitoring Wizard&#8221; on the left hand side.<br />
To add an OleDB watcher, use the following steps:</p>
<p>1. In the &#8220;Select Monitoring Type&#8221; step select &#8220;OLE DB Data Source&#8221;, click &#8220;Next&#8221;<br />
2. Within the general properties step specify a name for the monitor and choose a Management Pack for your custom monitoring (Microsoft recommends not to use the default management pack here, so create a new one!)<br />
3. In the Connection String dialog click on the &#8220;Build&#8230;&#8221; button. Choose any random Provider (we will change the connection string later on) enter a random computer name and database as well. Make sure you check: &#8220;Use Simple Authentication RunAs Profile created for this OLE DB data source transaction&#8221;, this is important.</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb5.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb5-300x157.png" alt="" title="oracle_oledb5" width="300" height="157" class="alignnone size-medium wp-image-383" /></a></p>
<p>4. Enter Query performance thresholds, if this is required.<br />
5. Within the &#8220;Watcher Nodes&#8221; step, select the machine on which we installed the Oracle client.<br />
6. Finish the wizard.</p>
<p>You should now end up with an OleDB Data Source within SCOM.<br />
Open the data source and navigate to the &#8220;Connection String&#8221; tab.<br />
Change the connection string in to the following format:</p>
<p><code>Provider=OraOLEDB.Oracle;Data Source=TEST;User Id=$RunAs[Name="OleDbCheck_b7035c5b5d6149b684df79089e99dc07.SimpleAuthenticationAccount"]/UserName$;Password=$RunAs[Name="OleDbCheck_b7035c5b5d6149b684df79089e99dc07.SimpleAuthenticationAccount"]/Password$</code></p>
<p>Replace the RunAs variables with the ones generated by the wizard. The data source is the Oracle SID, the same you used to test before. The provider name is the short (internal) name for the Oracle Provider for OLEDB.<br />
Save the OLEDB Data Source.</p>
<p><strong>Add associated runas user profiles</strong></p>
<p>If you checked the &#8220;Use Simple Authentication RunAs Profile created for this OLE DB data source transaction&#8221; during the wizard you should end up with a preset RunAs profile for this monitor. You can find it under Administration->Run As Configuration->Profiles in the operations manager console. </p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb6.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb6.png" alt="" title="oracle_oledb6" width="307" height="149" class="alignnone size-full wp-image-390" /></a></p>
<p>Double click this &#8220;simple authentication&#8221; RunAs profile.</p>
<p>To add a &#8220;Run As Account&#8221; follow the following steps:</p>
<p>1. In the &#8220;Run As Profile Wizard&#8221; click the &#8220;Run As Accounts&#8221; tab.<br />
2. Click on the &#8220;Add&#8230;&#8221; button to add an account.<br />
3. Click on &#8220;New&#8230;&#8221;, the &#8220;Create Run As Account Wizard&#8221; should now start. Skip the introduction.<br />
4. On the general properties page, select the run as account type. Set this to Simple Authentication and specify a display name.</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb7.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/09/oracle_oledb7.png" alt="" title="oracle_oledb7" width="679" height="605" class="alignnone size-full wp-image-391" /></a></p>
<p>5. On the credentials tab specify the account name and password.<br />
6. Select a distribution security option, based on your preference. I used the More Secure option (you need to reopen the account under the accounts pane to distribute it to your watcher node)<br />
7. Finish the &#8220;Create Run As Account Wizard&#8221;<br />
8. Click &#8220;OK&#8221; and finish the &#8220;Run As Profile Wizard&#8221;</p>
<p>You have now configured the Run As profile.<br />
To see the result of all this work, open the &#8220;OLE DB Data Source State&#8221; view within the monitoring pane. This is located underneath the &#8220;Synthetic Transaction&#8221; folder.<br />
This could take a while! (It took about 15 minutes in my environment)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/09/monitor-an-oracle-database-with-a-scom-oledb-watcher/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to trace SCCM&#8217;s management pack alerts to concrete SCCM errors</title>
		<link>http://www.maartendamen.com/2010/03/how-to-trace-sccms-management-pack-alerts-to-concrete-sccm-errors/</link>
		<comments>http://www.maartendamen.com/2010/03/how-to-trace-sccms-management-pack-alerts-to-concrete-sccm-errors/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 18:11:44 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[SCCM]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[alerts]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=234</guid>
		<description><![CDATA[Sometimes it&#8217;s a bit tricky to relate events generated by the SCCM management pack for SCOM to real SCCM errors. This article helps you to trace down the real SCCM error by using a real world example.. Let&#8217;s start by looking at the alert generated by the management pack in the SCOM console: Notice the [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s a bit tricky to relate events generated by the SCCM management pack for SCOM to real SCCM errors.<br />
This article helps you to trace down the real SCCM error by using a real world example..</p>
<p><span id="more-234"></span></p>
<p>Let&#8217;s start by looking at the alert generated by the management pack in the SCOM console:</p>
<p><img class="alignnone size-full wp-image-236" title="sccm_error" src="http://www.maartendamen.com/wp-content/uploads/2010/03/sccm_error1.png" alt="sccm_error" width="650" height="458" /></p>
<p>Notice the two items marked:</p>
<ul>
<li>Component</li>
<li>Message ID</li>
</ul>
<p>In this example the component affected is SMS_DISTRIBUTION_MANAGER and the message ID is 2302.<br />
Now let&#8217;s start the SCCM management console, drill down to Site Database -&gt; System Status -&gt; Site Status -&gt; Your site name -&gt; Component Status.</p>
<p><img class="alignnone size-full wp-image-237" title="sccm_error4" src="http://www.maartendamen.com/wp-content/uploads/2010/03/sccm_error4.png" alt="sccm_error4" width="389" height="224" /></p>
<p>The right pane should now give you a list of all the SCCM components,  note the SMS_DISTRIBUTION_MANAGER and the error count:</p>
<p><img class="alignnone size-full wp-image-239" title="sccm_error3" src="http://www.maartendamen.com/wp-content/uploads/2010/03/sccm_error3.png" alt="sccm_error3" width="650" height="198" /></p>
<p>Now right click the component with errors and select &#8220;Show Messages -&gt; All&#8221;<br />
A message status viewer will now popup showing some detailed information about the error:</p>
<p><img class="alignnone size-full wp-image-240" title="sccm_error2" src="http://www.maartendamen.com/wp-content/uploads/2010/03/sccm_error2.png" alt="sccm_error2" width="592" height="181" /></p>
<p>Note that the message ID of the error reported by the management pack is listed here. This should give you some in-depth information about the error.<br />
I hope this article helps you to trace alerts generated by SCOM down to the real SCCM errors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/03/how-to-trace-sccms-management-pack-alerts-to-concrete-sccm-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trend Micro IMSS management pack for SCOM</title>
		<link>http://www.maartendamen.com/2010/02/trend-micro-imss-management-pack-for-scom/</link>
		<comments>http://www.maartendamen.com/2010/02/trend-micro-imss-management-pack-for-scom/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:43:29 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[SCOM]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[trendmicro]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=213</guid>
		<description><![CDATA[I just released my first management pack for System Center Operations Manager (SCOM). It&#8217;s a management pack for Trend Micro&#8217;s IMSS. You can download the management pack here: http://www.maartendamen.com/?page_id=190]]></description>
			<content:encoded><![CDATA[<p>I just released my first management pack for System Center Operations Manager (SCOM).<br />
It&#8217;s a management pack for Trend Micro&#8217;s IMSS.</p>
<p>You can download the management pack here:<br />
<a href="http://www.maartendamen.com/?page_id=190">http://www.maartendamen.com/?page_id=190</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/02/trend-micro-imss-management-pack-for-scom/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Significant CPU increase after installing McAfee 8.7 (patch 2) on Windows 2008</title>
		<link>http://www.maartendamen.com/2010/02/significant-cpu-increase-after-installing-mcafee-8-7-patch-2-on-windows-2008-affects-scom-environment/</link>
		<comments>http://www.maartendamen.com/2010/02/significant-cpu-increase-after-installing-mcafee-8-7-patch-2-on-windows-2008-affects-scom-environment/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 11:56:24 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[McAfee]]></category>
		<category><![CDATA[SCOM]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=163</guid>
		<description><![CDATA[Last week we deployed the new McAfee 8.7 virusscan software. After the installation we noticed that some servers got slower. Especially our SCOM environment suffered from this increased CPU usage (SCOM being a CPU intensive application itself, didn&#8217;t have enough CPU time left to process all agent traffic). This ultimately ended up in not being [...]]]></description>
			<content:encoded><![CDATA[<p>Last week we deployed the new McAfee 8.7 virusscan software.<br />
After the installation we noticed that some servers got slower. Especially our SCOM environment suffered from this increased CPU usage (SCOM being a CPU intensive application itself, didn&#8217;t have enough CPU time left to process all agent traffic). This ultimately ended up in not being able to monitor anything.</p>
<p>Here&#8217;s an image of the increased CPU usage (this is our SCOM report server):<br />
<span id="more-163"></span></p>
<p><img class="alignnone size-full wp-image-166" title="mcafee_cpu" src="http://www.maartendamen.com/wp-content/uploads/2010/02/mcafee_cpu.png" alt="mcafee_cpu" width="510" height="392" /></p>
<p>As a quick workaround we decided to do a rollback to McAfee 8.5.<br />
Here&#8217;s an image of the decreased CPU usage:</p>
<p><img class="alignnone size-full wp-image-170" title="mcafee_cpu2" src="http://www.maartendamen.com/wp-content/uploads/2010/02/mcafee_cpu21.png" alt="mcafee_cpu2" width="209" height="387" /></p>
<p>So what&#8217;s causing this? No clue yet, but there are some McLogEvent errors in the eventlog (crashing McAfee):</p>
<p><img class="alignnone size-full wp-image-172" title="mcafee_mclogevent" src="http://www.maartendamen.com/wp-content/uploads/2010/02/mcafee_mclogevent.png" alt="mcafee_mclogevent" width="630" height="440" /></p>
<p>To be continued&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/02/significant-cpu-increase-after-installing-mcafee-8-7-patch-2-on-windows-2008-affects-scom-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCOM alert notification subscription delay sending for x minutes and don&#8217;t sent if alert is auto-resolved within that time</title>
		<link>http://www.maartendamen.com/2009/12/scom-alert-notification-subscription-delay-sending-for-x-minutes-and-dont-sent-if-alert-is-auto-resolved-within-that-time/</link>
		<comments>http://www.maartendamen.com/2009/12/scom-alert-notification-subscription-delay-sending-for-x-minutes-and-dont-sent-if-alert-is-auto-resolved-within-that-time/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 10:52:24 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[SCOM]]></category>
		<category><![CDATA[alerts]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=40</guid>
		<description><![CDATA[In my company we are using SCOM for monitoring our server environment. Off hours we also get notified about critical alerts using a SMS/GSM modem. Using default SCOM functionality we delay the sending of notifications by 5 minutes. This works fine for alerts with a &#8220;new&#8221; state. However if an alert is closed within the [...]]]></description>
			<content:encoded><![CDATA[<p>In my company we are using SCOM for monitoring our server environment.<br />
Off hours we also get notified about critical alerts using a SMS/GSM modem.<br />
Using default SCOM functionality we delay the sending of notifications by 5 minutes. This works fine for alerts with a &#8220;new&#8221; state.<br />
However if an alert is closed within the 5 minute period a &#8220;closed&#8221; notification is sent out.<br />
We do not want to see the closed alerts if an alert auto-resolved within the 5 minute time period.  But if a new alert that has aged 5 minutes and sent to our GSM, we definately want to see that closed alert if it auto/manual resolves into the closed state (to make sure someone actually did something about the alert)</p>
<p>Using default SCOM functionality, this is not possible. This is why we came up with the following idea (special thanks to my colleague Frank):</p>
<ul>
<li>Using two seperate subscriptions, one for &#8220;new&#8221; alerts and one for &#8220;closed&#8221; alerts.</li>
<li> On the new alert subscription set a channel with a powershell script to update custom field 1 when a SMS has been sent (this subscription has the 5 minute delay)</li>
<li>On the closed alert subscription set a condition to check custom field 1 to see wheter a SMS has been sent or not.</li>
</ul>
<p>This blog post describes how this can be done within SCOM.</p>
<p><span id="more-40"></span></p>
<p><strong>1. The Command Notification Channel<br />
</strong></p>
<p>First we have to create a &#8220;Command Notification Channel&#8221;. Go to the &#8220;Administration&#8221; section of the SCOM management console. Click on Notifications-&gt;Channels.<br />
Right click and select &#8220;New-&gt;Command&#8230;&#8221;.<br />
The following wizard appears:</p>
<p><img class="size-full wp-image-45 alignnone" style="margin: 10px 0px;" title="Command Notification Channel Wizard #1" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_cmdnot1.png" alt="Command Notification Channel Wizard #1" width="680" height="244" /></p>
<p>Give the channel a name, and click &#8220;Next &gt;&#8221;</p>
<p>Enter the following settings for the channel:</p>
<p><strong>Full path of the command file:</strong><br />
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe<br />
<strong>Command line parameters:<br />
</strong><em> </em>-Command &#8220;&amp; D:\Scripts\UpdateAlertCustomField.ps1 -alertid:&#8221;$Data/Context/DataItem/AlertId$&#8221;"<br />
<strong>Startup folder for the command line:</strong><br />
D:\Scripts</p>
<p>Change D:\Scripts to reflect your PowerShell script location. It should now look like this:</p>
<p><img class="size-full wp-image-46 alignnone" title="Command Notification Channel Wizard #2" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_cmdnot2.png" alt="Command Notification Channel Wizard #2" width="468" height="167" /></p>
<p>Save the changes by clicking &#8220;Finish&#8221;</p>
<p><strong>2. The used PowerShell script</strong></p>
<p>To modify alert &#8220;custom field 1&#8243;, I use a small PowerShell script. The text written into the field is &#8220;Notification sent out&#8221;<br />
The used script is displayed here, save this script as &#8220;UpdateAlertCustomField.ps1&#8243; in the directory specified in the command notification channel above.</p>
<pre class="brush: powershell; title: ; notranslate">
# Get alertid parameter
Param($alertid)
$alertid = $alertid.toString()

# Load SCOM snap-inn
add-pssnapin &quot;Microsoft.EnterpriseManagement.OperationsManager.Client&quot;;
$server = &quot;localhost&quot;

# Connect to SCOM
new-managementGroupConnection -ConnectionString:$server;
set-location &quot;OperationsManagerMonitoring::&quot;;

# Update alert custom field
$alert = Get-Alert -id $alertid
$alert.CustomField1 = &quot;Notification sent out&quot;
$alert.Update(&quot;Custom field 1 updated by UpdateAlertCustomField script&quot;)
</pre>
<p><strong>3. A subscriber for the command</strong></p>
<p>The next step is to create a subscriber which has the command notification channel created above assigned as channel.<br />
Go to the &#8220;Administration&#8221; section of the SCOM management console. Click on Notifications-&gt;Subscribers.<br />
Right click and click &#8220;New&#8230;&#8221;</p>
<p>In the &#8220;Notification Subscriber Wizard&#8221; give the new subscriber a name. In the next step of the wizard, specify your schedule as desired.<br />
On the &#8220;Addresses&#8221; step, click &#8220;Add&#8230;&#8221; to add a new address.</p>
<p><img class="alignnone size-full wp-image-72" title="scom_notsub_add" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_notsub_add.png" alt="scom_notsub_add" width="680" height="311" /></p>
<p>In the &#8220;Subscriber Address&#8221; wizard, specify a name for the new subscriber. This can be virtually anything as no e-mails/pages/SMS messages are sent anyway.<br />
Next, specify the &#8220;Command&#8221; channel type and select the Command channel we created earlier (Update custom field 1).</p>
<p><img class="alignnone size-full wp-image-73" title="scom_subaddr" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_subaddr.png" alt="scom_subaddr" width="677" height="351" /></p>
<p>Specify your schedule as desired, click &#8220;Finish&#8221; to end the wizard. Click &#8220;Finish&#8221; again to close the &#8220;Notification Subscriber Wizard&#8221;.<br />
You should now have a subscriber with the command channel as asigned channel.</p>
<p><strong>4. The subscription for new alerts</strong></p>
<p><strong></strong>Now that we have the command notification channel, powershell script and subscriber ready. We can create a new subscription for new alerts.<br />
Go to the &#8220;Administration&#8221; section of the SCOM management console. Click on Notifications-&gt;Subscriptions.</p>
<p>In the &#8220;Notification Subscription Wizard&#8221; specify a name for the new subscription. The next wizard step is the step to define criteria for the subscription.<br />
Specify atleast the &#8220;with specific resolution state&#8221; criteria, offcourse you can add your own other criteria here like you would normally do.</p>
<p><img class="alignnone size-full wp-image-74" title="scom_notsub_wi" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_notsub_wi.png" alt="scom_notsub_wi" width="489" height="365" /></p>
<p>On the next wizard page (Subscribers) add the command subscriber we created in step 3, as shown below.</p>
<p><img class="alignnone size-full wp-image-75" title="scom_subaddr_wi2" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_subaddr_wi2.png" alt="scom_subaddr_wi2" width="477" height="237" /></p>
<p>In the next wizard step (Channels) add the command channel we created in step 1 and specify the desired delay (5 minutes in this case). As shown below:</p>
<p><img class="alignnone size-full wp-image-76" title="scom_delay" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_delay.png" alt="scom_delay" width="476" height="474" /></p>
<p>Click &#8220;Next&#8221;, in the summary step make sure &#8220;Enable this notification subscription&#8221; is checked and click &#8220;Finish&#8221;.<br />
You should now have an subscription ready for new SCOM alerts.</p>
<p><strong>5. Subscription for closed alerts</strong></p>
<p>You can create the subscription channel like you would normally do. The only important step is to get the criteria right. We have to include custom field 1.<br />
This is how the closed subscription criteria look:</p>
<p><img class="alignnone size-full wp-image-79" title="scom_notcustom" src="http://www.maartendamen.com/wp-content/uploads/2009/12/scom_notcustom.png" alt="scom_notcustom" width="483" height="393" /></p>
<p><span style="text-decoration: underline;"><strong>NOTE: there is currently a bug in SCOM R2 when using custom fields in a subscription criteria!</strong></span></p>
<p>For more information about thihs bug visit the following URL:</p>
<p><a href="http://social.technet.microsoft.com/Forums/en/operationsmanagergeneral/thread/260be16a-0f45-4904-8093-7c1caa5ed546">http://social.technet.microsoft.com/Forums/en/operationsmanagergeneral/thread/260be16a-0f45-4904-8093-7c1caa5ed546</a></p>
<p><span style="text-decoration: underline;">You have to update the xml file each time you change something in either of the notifications!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2009/12/scom-alert-notification-subscription-delay-sending-for-x-minutes-and-dont-sent-if-alert-is-auto-resolved-within-that-time/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

