Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help creating a custom condition detection module

Status
Not open for further replies.

mickeygousset

Programmer
Aug 27, 2008
1
US
I'm not sure if this is the right spot, but I thought I would start here. I know just enough MOM and System Center terminology to be dangerous, so please forgive me if I misspeak.

Question #1
I'm working on creating a custom condition detection module, that will then be used along with a URL monitor in a Management Pack for SCOM/MOM 2007. The output from the URL monitor will be the input into my custom condition detection module.

The output type for the URL monitor is listed in the MP XML as

MicrosoftSystemCenterWebApplicationLibrary!Microsoft.SystemCenter.WebApplication.WebApplicationData

So I figure, in my custom condition detection module, in the OnNewDataItems method, I need to declare the dataItems parameter to be of type

Microsoft.SystemCenter.WebApplication.WebApplicationData.

However, I don't know how to add this reference to my C# code, so that I can access this type in the OnNewDataItems method.

Can anyone help me? Is there a simpler way of sending the output from the URL Monitor to the input of my custom condition detection module? Is there a generic base type I should be using instead?

Question #2
Once I do get the output from the URL monitor into my custom condition detection module, how do I then access the response object from that? I need to parse out the response object in my condition detection code.


Question #3
When I am creating my custom condition detection rule, I inherit from ModuleBase<TOutputDataType> where TOutputDataType : DataItemBase. Do I have to create a custom Data Item to go along with my custom condition detection module?. What my module does is take the output from a URL monitoring piece, parse it, and then return a string value. Is there any way to create my custom module where the TOutputDataType is a string value, or do I have to create a custom Data Item?

I'll be glad to provide more detail or clarification on any of the above questions if needed.

Thanks!

Mickey

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top