Exception Event Count Monitor Template

AVIcode.DotNet.SystemCenter.Client.ExceptionEventCountMonitor.Template (Template)

Source Code:

<Template ID="AVIcode.DotNet.SystemCenter.Client.ExceptionEventCountMonitor.Template" Purpose="RuleCreation">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="LocaleId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MonitorId" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MonitorName" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TargetClass" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Frequency" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WarningThreshold" type="xsd:double"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ErrorThreshold" type="xsd:double"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Hosts" type="xsd:string"/>
</Configuration>
<References>
<Reference ID="Self"/>
<Reference ID="Health"/>
<Reference ID="System"/>
<Reference ID="Windows"/>
</References>
<Implementation>
<Monitoring>
<Monitors>
<UnitMonitor ID="$TemplateConfig/MonitorId$" Accessibility="Public" Target="$TemplateConfig/TargetClass$" Enabled="true" TypeID="$Reference/Self$AVIcode.DotNet.SystemCenter.Client.EventCountMonitor" ParentMonitorID="$Reference/Health$System.Health.AvailabilityState" Remotable="false">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="ApplicationStateOK" ID="Success"/>
<OperationalState HealthState="Error" MonitorTypeStateID="ApplicationStateError" ID="Error"/>
<OperationalState HealthState="Warning" MonitorTypeStateID="ApplicationStateWarning" ID="Warning"/>
</OperationalStates>
<Configuration>
<Interval>$TemplateConfig/Frequency$</Interval>
<WarningThreshold>$TemplateConfig/WarningThreshold$</WarningThreshold>
<ErrorThreshold>$TemplateConfig/ErrorThreshold$</ErrorThreshold>
<Name>$Target/Host/Property[Type="$Reference/Self$AVIcode.DotNet.SystemCenter.Client.WebApplication"]/ApplicationName$</Name>
<EventClass>CSMXMonitorLog</EventClass>
<EventNumber>9995</EventNumber>
<EventLevel>1</EventLevel>
<Channel>uX Exception event provider</Channel>
<PingInterval>10</PingInterval>
</Configuration>
</UnitMonitor>
</Monitors>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="$TemplateConfig/LocaleId$">
<DisplayStrings>
<DisplayString ElementID="$TemplateConfig/MonitorId$">
<Name>$TemplateConfig/MonitorName$</Name>
<Description>Event count monitor that becomes unhealthy if the total number of uX application failure events per predefined escalation time period exceeds an escalation threshold.</Description>
</DisplayString>
<DisplayString ElementID="$TemplateConfig/MonitorId$" SubElementID="Success">
<Name>Success</Name>
<Description>Monitor state.</Description>
</DisplayString>
<DisplayString ElementID="$TemplateConfig/MonitorId$" SubElementID="Warning">
<Name>Warning</Name>
<Description>Monitor state.</Description>
</DisplayString>
<DisplayString ElementID="$TemplateConfig/MonitorId$" SubElementID="Error">
<Name>Error</Name>
<Description>Monitor state.</Description>
</DisplayString>
</DisplayStrings>
<KnowledgeArticles>
<KnowledgeArticle ElementID="$TemplateConfig/MonitorId$" Visible="true">
<MamlContent>
<maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10">
<maml:title>Summary</maml:title>
<maml:para>The instance state becomes unhealthy if the total number of uX application failure events per predefined escalation time period exceeds an escalation threshold.</maml:para>
</maml:section>
<maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10">
<maml:title>Causes</maml:title>
<maml:para>Application exception alerts are generated as a result of client page errors from the application that prevent normal application flow. The alert details display the type of exception thrown, name of the failed function and the resulting call stack. Application exceptions are due to actual errors in the application code and require analyzing the stack trace and data values used in functions.</maml:para>
</maml:section>
<maml:section xmlns:maml="http://schemas.microsoft.com/maml/2004/10">
<maml:title>Resolutions</maml:title>
<maml:para>Application failure alerts arise from java script exceptions. To resolve these exceptions, check the exception type and the function that the exception was thrown from. Resolution of these types of problems typically requires access to application source code.</maml:para>
<maml:para>To access details about this alert from the Alerts list, right-click the alert in the list and select Open -&gt; Event View from the menu. From the list of events related to this alert, select an event to load the event details in the lower pane of the window.</maml:para>
<maml:para>Another way to access details about this alert is from the Alert Details view. Click on the View additional knowledge... link, and select the Alert Context tab. Additional event details will be available from the Click here link at the top of the Alert Context tab.</maml:para>
</maml:section>
</MamlContent>
</KnowledgeArticle>
</KnowledgeArticles>
</LanguagePack>
</LanguagePacks>
</Implementation>
</Template>