mickeygousset
Programmer
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
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