scom alerts and management packs
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?
March 17th, 2011 9:59pm

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 GrahamView OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2011 10:03pm

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
March 18th, 2011 12:44am

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.
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2011 3:00am

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
March 18th, 2011 9:22pm

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
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2011 9:22pm

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 GrahamView OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
March 18th, 2011 9:30pm

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 GrahamView OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2011 9:30pm

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?
March 18th, 2011 10:20pm

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?
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2011 10:20pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics