<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>sbs Forum Rss Feed</title><link>http://www.codeplex.com/sbs/Thread/List.aspx</link><description>sbs Forum Rss Description</description><item><title>New Post: How to build a custom alert</title><link>http://www.codeplex.com/sbs/Thread/View.aspx?ThreadId=34096</link><description>&lt;div style="line-height: normal;"&gt;How to build a custom alert.&lt;br&gt;
&lt;br&gt;
Read this first --&amp;nbsp;&lt;a href="http://msdn.microsoft.com/en-us/library/cc721719.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc721719.aspx&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Don't panic you don't HAVE to know PowerShell in order to do this.&lt;br&gt;
&lt;br&gt;
Step 1 - Identify the event in the event log you want to track.&lt;br&gt;
&lt;br&gt;
Step 2 - go to &lt;a href="http://www.guidgen.com"&gt;www.guidgen.com&lt;/a&gt; and generate a new GUID.&amp;nbsp; Copy it and hold it for later use.&amp;nbsp; (this is place of using PowerShell to generate a GUID, you can skip that step and use &lt;a href="http://www.guidgen.com"&gt;www.guidgen.com&lt;/a&gt; instead)&lt;br&gt;
&lt;br&gt;
Step 3 - look at the event you want to track.&amp;nbsp;&amp;nbsp;Click the &lt;b&gt;Details&lt;/b&gt; tab, click &lt;b&gt;Friendly View&lt;/b&gt;, and then expand &lt;b&gt;System&lt;/b&gt;. Record the information for the *Provider Name* and *Channel*, which will be used later in this document.&lt;br&gt;
&lt;br&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&lt;br&gt;
&amp;lt;AlertDefinitions&amp;gt;&lt;br&gt;
&amp;lt;AlertDefinition ID=&amp;quot;Insert the GUID here&amp;quot; Default=&amp;quot;1&amp;quot;&lt;br&gt;
Title=&amp;quot;Put a descriptive title here&amp;quot; Source=&amp;quot;Indicate here that it's a Server or Computer issue&amp;quot;&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Parameters&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Path&amp;gt;*Channel value from the event*&amp;lt;/Path&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Provider&amp;gt;*Provider value from the event*EventLog&amp;lt;/Provider&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SetEventID&amp;gt;*Insert the event ID number from the Event*&amp;lt;/SetEventID&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Parameters&amp;gt;&lt;br&gt;
&amp;lt;/AlertDefinition&amp;gt;&lt;br&gt;
&amp;lt;/AlertDefinitions&amp;gt; &lt;br&gt;
&lt;br&gt;
Enter the appropriate information in notepad and save it as an XML file&lt;br&gt;
&lt;br&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&lt;br&gt;
&amp;lt;AlertDefinitions&amp;gt;&lt;br&gt;
&amp;lt;AlertDefinition ID=&amp;quot;896e6561-b29d-42b5-b349-a87460c8556f&amp;quot; Default=&amp;quot;1&amp;quot;&lt;br&gt;
Title=&amp;quot;Unexpected Shut down&amp;quot; Source=&amp;quot;Server&amp;quot;&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Parameters&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Path&amp;gt;System&amp;lt;/Path&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Provider&amp;gt;EventLog&amp;lt;/Provider&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SetEventID&amp;gt;6008&amp;lt;/SetEventID&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/Parameters&amp;gt;&lt;br&gt;
&amp;lt;/AlertDefinition&amp;gt;&lt;br&gt;
&amp;lt;/AlertDefinitions&amp;gt; &lt;br&gt;
&lt;br&gt;
It will look like that.&lt;br&gt;
&lt;br&gt;
To deploy the custom alert
&lt;ol class=ordered&gt;
    &lt;li&gt;
    &lt;p&gt;Copy the .xml file that was created earlier in this document to the %programfiles%\Windows Small Business Server\Data\Monitoring\ExternalAlerts directory on the computer that is running the Windows SBS&amp;nbsp;2008 operating system.&lt;/p&gt;
    &lt;li&gt;
    &lt;p&gt;Restart the Windows SBS Manager service.&lt;/p&gt;
    To restart the Windows SBS Manager service
    &lt;ol class=ordered&gt;
        &lt;li&gt;
        &lt;p&gt;Click &lt;b&gt;Start&lt;/b&gt;, point to &lt;b&gt;Administrative Tools&lt;/b&gt;, and then click &lt;b&gt;Services&lt;/b&gt;.&lt;/p&gt;
        &lt;li&gt;
        &lt;p&gt;Right-click the &lt;b&gt;Windows SBS Manager&lt;/b&gt; service, and then click &lt;b&gt;Restart&lt;/b&gt;.&lt;/p&gt;
        &lt;/li&gt;
    &lt;/ol&gt;
    &lt;/li&gt;
&lt;/ol&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>Bitzie</author><pubDate>Fri, 22 Aug 2008 19:39:40 GMT</pubDate><guid isPermaLink="false">New Post: How to build a custom alert 20080822073940P</guid></item></channel></rss>