Debugging SCOM web applications

5 Jan

Hi,

Today I will share one of the greatest tools on earth with you !

It is named : FIDDLER

All the credits are going to the the author : e_lawrence@hotmail.com

This tool will help you debug all sorts of HTTP(s) traffic. Maybe you think now “but what has this to do with SCOM ?”

The answer is : A lot when you are working with the SCOM web application monitoring. If you have setup/recorded a web application to monitor and are going to use the parameter extraction and insertion you are in the blind with debugging. You will never know if the parameter extraction was successful. Till now!

Of course you could try to do retry on error runs using the Run Test in the Web Application Editor by enabling all content collection and compare the output in the result windows. (pfff) Or do the bare level hardcore authoring stuff (where I am home at) by exporting the MP and use the Workflow simulator or the Workflow analyzer to get the trace, or real hardcore use the healthservice module tracing for it. But this is really time consuming and not necessary for the Web Applications because I know the Web application monitoring workflows are working okay but the Parameter extraction isn’t. And since this is a functional http response problem I use a simple HTTP trace program for it named FIDDLER.

So I will show you how to use FIDDLER to get the wanted web application debug trace in a couple of simple steps:

1. Download FIDDLER from  :  https://www.fiddler2.com/Fiddler2/version.asp

2. Install Fiddler on your developer box

3. Disable the firewall on our dev box (I m sure you have all ready done this Knipogende emoticon)

4. Configure the web proxy setting for FIDDLER

Go to Tools > Fiddler options

image

 

Enable the remote connections and notice the port number:

image

 

5. Restart Fiddler. Important step!

6. Now we are almost there….

7. Open in SCOM the recorded Web Application

image

 

8. Open the “Configure Settings” and enable the Web proxy , fill in the IP and port of your Dev box.

image

 

9. Now go you Dev box and start up Fiddler and enable the capturing

image

10. Just wait till the Web Application monitoring is triggered. And you will see …..

image

 

And this is it. Now you select the correct Http capture’s and investigate the POST / GET inspector to see if the parameter insertion was correct and you can investigate the request results to see if the parameter extraction was setup okay.

 

 

Some tips:

[1] If you don’t want to wait till the next wen check run. Just press the “Run Test” in the Web application editor.

image

[2] Be aware when using this on-instant run test all MPelement references (example a runas profile element) will not work. So you must replace it by default values.

Or you will be hit by this error:

image

[3] To minimize the capture output to only the proxy http data only select “All processes”

image

[4] Best way to look for the parameters is selecting the Webforms tab in the inspectors tab.

image

 

 

Hope this will help you too!

 

Happy SCOM’ing!

Michel Kamp

Advertisements

3 Responses to “Debugging SCOM web applications”

  1. wordpress.com May 6, 2013 at 17:07 #

    First of all I would like to say excellent blog! I had a quick question in which I’d like to ask if you don’t mind.
    I was interested to find out how you center yourself and clear your head
    before writing. I’ve had trouble clearing my thoughts in getting my ideas out. I do enjoy writing but it just seems like the first 10 to 15 minutes are lost simply just trying to figure out how to begin. Any suggestions or tips? Cheers!

  2. between men women May 7, 2013 at 07:26 #

    This piece of writing will help the internet visitors for building up new webpage or even a blog from
    start to end.

  3. excusing cam newton May 17, 2013 at 22:18 #

    Ahaa, its pleasant discussion on the topic of this
    article here at this web site, I have read all that, so at this time me also commenting
    at this place.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: