Monitoring Health By Using Multiple Providers, the Dashboard, and Remote Web Access
Published: December 17, 2010
Updated: October 9, 2012
Applies To: Windows Home Server 2011, Windows Server 2012 Essentials, Windows Small Business Server 2011 Essentials, Windows Storage Server 2008 R2 Essentials
This example represents a scenario that monitors the health of servers on the network (or multiple networks). In this example, a provider runs on servers of which the health status is reported, another provider runs on a server that aggregates the status information from the reporting provider, and the health status is viewed from a tab on the Dashboard or a Web page through Remote Web Access. For the purposes of describing this scenario, the server that runs the reporting provider is referred to as the reporting server and the server that runs the aggregating provider as the aggregating server.
A Visual Studio solution named HealthSample is provided with the SDK that contains all of the files that are used to implement this scenario. The sample uses WCF services, Windows Azure, and the Provider Framework to enable the scenario. You can use the following resources to become more familiar with the technologies that are used in this scenario:
Understanding Windows Communication Foundation (http://go.microsoft.com/fwlink/?LinkId=181481)
Hosting Windows Communication Foundation Services (http://go.microsoft.com/fwlink/?LinkId=181527)
Windows Azure Platform (http://go.microsoft.com/fwlink/?LinkId=181895)
|To use the AppFabric feature of Windows Azure, you must download and install the Windows Azure platform AppFabric SDK. To download the SDK, see Windows Azure platform AppFabric SDK v1.0 (http://go.microsoft.com/fwlink/?LinkID=181893).|
The following sections describe the features that are used to implement the scenario:
Create the Reporting Provider
By creating a provider that works with the Provider Framework, you can manage both local workloads and online workloads. The Provider Framework provides the flexibility that you need when you integrate workloads and features into the product. This reporting provider obtains the health status information of the server and makes the status available to the aggregating provider.
Create a WCF Service and Client
Many methods are available for hosting WCF services. In this sample, an example is provided that shows how to host your service by using Windows Azure. The sample shows how to use a WCF client and service to collect alert information and send a boolean value depending on whether Warning or Critical alerts exist.
Create the Aggregating Provider
This provider aggregates the health status of the reporting servers.
Create a Tab in the Dashboard that Displays Provider Data
A new tab is added to the Dashboard that displays the status information from the aggregating server.
Create a Web Page that Displays Provider Data
A Web page is created that also displays the health status. The Web page is accessed through Remote Web Access.