locked
scom alerts and management packs RRS feed

  • Question

  • hi... evey one...

     

    i want to know how create custom alert in scom throw management pack?

    how to use rules and how to troubleshoot on its working properly or not?

    i'm new to SCOM, so kindly help me with sample code(management pack(xml) and c#) and related steps for create alerts.

    and i want know how to access management pack from c# code? 

    Thursday, March 17, 2011 11:52 AM

Answers

All replies

  • hi... evey one...

     

    i want to know how create custom alert in scom throw management pack?

    how to use rules and how to troubleshoot on its working properly or not?

    i'm new to SCOM, so kindly help me with sample code(management pack(xml) and c#) and related steps for create alerts.

    and i want know how to access management pack from c# code? 

    • Merged by Graham Davies Thursday, March 17, 2011 11:59 AM same question - duplicate posting
    Thursday, March 17, 2011 11:51 AM
  • Hi

    If you are new to SCOM then I'd suggest to take it slowly. This is a huge product and to develop custom rules \ monitors will require an understanding of how Management Packs work, targetting and the architecture:

    Basics:

    http://technet.microsoft.com/en-us/systemcenter/dd627344

    http://systemcentersolutions.wordpress.com/2010/09/01/monitors-overview/

    http://systemcentersolutions.wordpress.com/2009/08/02/overrides/

    http://systemcentersolutions.wordpress.com/2009/07/10/targetting/

    There are a lot fo C# coding examples here:

    http://msdn.microsoft.com/en-us/library/cc268402.aspx

    http://systemcentersolutions.wordpress.com/2010/01/18/some-authoring-links/

    Cheers

    Graham


    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
    Thursday, March 17, 2011 11:57 AM
  • thanks davies....

    last three months i'm trying to create custom alert in scom... i sucessfully create management pack but unable create allert for that....

    so if u have any sample code regarding this(management pack with C#) just post on here....

    regards

    satheesh

    Friday, March 18, 2011 4:39 AM
  • Hi,

    Please let us know what alert you would like to generate and what MP has been created. Thank you.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Friday, March 18, 2011 6:51 AM
  • hi..Vivan

    just create on custom alert from MP, when i 'm run that MP it will create one alert in scom monitor when rules condion is satisfied.

    just explain how to create rules throw manully and MP, pls explain with steps and Sample MP.

    i want to know about how to troubleshoot rules are fire correctly or not?

    so if u have any mp samples just post here.... with runing steps...

    <Rules>
    <Rule ID="SdkDemo.DiscoveryDataInsertion.Rule1" Enabled="true" Target="System!System.Entity" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
      <Category>Alert</Category>
     <DataSources>
     <DataSource TypeID="SystemCenter!Microsoft.SystemCenter.SdkEventProvider" ID="DataSource" />
     
      </DataSources>
     <ConditionDetection TypeID="System!System.ExpressionFilter" ID="ConditionDetection">
     <Expression>
     <SimpleExpression>
     <ValueExpression>
      <XPathQuery>EventNumber</XPathQuery>
      </ValueExpression>
      <Operator>Equal</Operator>
     <ValueExpression>
      <Value>1</Value>
      </ValueExpression>
      </SimpleExpression>
      </Expression>
      </ConditionDetection>
     <WriteActions>
     <WriteAction TypeID="Health!System.Health.GenerateAlert" ID="WriteAction">
      <Priority>1</Priority>
      <Severity>1</Severity>
      <AlertName>Event triggered alert for instance $Data/ManagedEntityId$ for targeted processing rule</AlertName>
      <AlertDescription>The alert was triggered by event id $Data/EventNumber$</AlertDescription>
      <AlertOwner>My Owner</AlertOwner>
      </WriteAction>
      </WriteActions>
      </Rule>
      </Rules>

    its my rule ... but it not fire .., no alerts generated in scom monitor.

    cheers

    satheesh 

     

     



    Friday, March 18, 2011 9:30 AM
  • How are you targetting your rule?

    You can't target groups - you need to target classes:

    http://systemcentersolutions.wordpress.com/2009/07/10/targetting/

    An example:

    http://msdn.microsoft.com/en-us/library/ee533583.aspx

    Note - you can't use parameters in the alert name - it won't cause it to fail but it is the literal text that will be displayed.

    Cheers

    Graham


    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
    Friday, March 18, 2011 9:38 AM
  • targetting the class only....

    can u post one sample MP with rules.... when i import that MP, it create alert(Alert view) in Scom monitor...

     when i import MP packs, it imported sucessfully and rules also enabled.

    but rules are not fired.... so unable create any alert,,,,...

    what i want do next step?

    how to troubleshoot that MP and its rules?

    Friday, March 18, 2011 12:24 PM
  • Hi, As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as "Answered". Either the previous steps should be helpful for many similar scenarios and will be marked as answer, or this post will be marked as answer in order to close the thread. Feel free to re-open the thread if you have additional information about this specific case or to open a new thread for a new case. In addition, we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks,


    Bob Cornelissen - BICTT (My Blog about SCOM) - MVP 2012 + 2013 and Microsoft Community Contributor 2011 + 2012 Recipient

    Tuesday, March 19, 2013 3:11 PM