Last post Aug 06, 2010 07:34 AM by JeffRod
Aug 02, 2010 03:41 PM|JeffRod|LINK
I want to create a website that can monitor the status of other websites running on the same server. Is this possible? How do I get a reference to a site's HttpApplication context from a separate HttpApplication?
Aug 06, 2010 12:50 AM|XIII|LINK
I want to create a website that can monitor the status of other websites running on the same server
first of all, what do you want to measure? If the other sites are running or performance counters of those sites or something else. Can you elaborate further.
How do I get a reference to a site's HttpApplication context from a separate HttpApplication?
That's not possible by default as each are living in its own application domain. A technique to get around that which was mostly used in the beginning days was
.NET remoting. In the more modern days WCF is advised to be used instead of that.
Aug 06, 2010 06:57 AM|Rahul.B|LINK
You may store the information from each website in a database/ an XML file on the server.
and read DB/XML file into this monitoring web site.
Aug 06, 2010 07:34 AM|JeffRod|LINK
what do you want to measure
I want to be able to see which assemblies each website has loaded and which HttpModules are running. If I were able to get that up and running, I'm sure I can think of a few extra things I would like to inspect too.
One of the reasons that I want to do this is to see if the client-side WCF service I installed in the server's GAC and machine.config is running on all of the websites. (I installed it a few weeks ago and so far, I have only seen about 20% of the sites on
that machine actually call the service.) So in my case, I wouldnt want to create a WCF service to report information on another WCF service.
If WCF is the best way to go about doing something like this, maybe I need to rethink my approach.