﻿<?xml version="1.0" encoding="utf-8" ?>
<!--
  <copyright file="Definition.xml" company="Microsoft">
    Copyright (C) Microsoft. All rights reserved.
  </copyright>
-->
<Feature xmlns="http://schemas.microsoft.com/WindowsServerSolutions/2010/03/Health"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://schemas.microsoft.com/WindowsServerSolutions/2010/03/Health ..\..\Engine\FeatureSchema.xsd"
         Name="CorenetFeature" Title="CoreNetHealth!Microsoft.WindowsServerSolutions.CoreNetworking.Health.Resources#CoreNetFeatureTitle">

  <HealthDefinitions>
    <HealthDefinition Name="FirewallService" Title="CoreNetHealth!Microsoft.WindowsServerSolutions.CoreNetworking.Health.Resources#FirewallServiceTitle">
      <Filter>
        <Binary>
          <Assembly>HealthActions</Assembly>
          <Class>Microsoft.WindowsServerSolutions.NetworkHealth.Actions.NetworkServerFilter</Class>
        </Binary>
      </Filter>
      <Condition>
        <Binary>
          <Assembly>CoreNetHealth</Assembly>
          <Class>Microsoft.WindowsServerSolutions.CoreNetworking.Health.FirewallServiceCondition</Class>
        </Binary>
      </Condition>
      <HealthStatusChange>
        <Status>Critical</Status>
      </HealthStatusChange>
      <Troubleshoot>
        <Steps>
          CoreNetHealth!Microsoft.WindowsServerSolutions.CoreNetworking.Health.Resources#FirewallServiceResolution
        </Steps>
      </Troubleshoot>
      <RepairAction>
        <Binary>
          <Assembly>CoreNetHealth</Assembly>
          <Class>Microsoft.WindowsServerSolutions.CoreNetworking.Health.FirewallServiceRepairAction</Class>
        </Binary>
      </RepairAction>
    </HealthDefinition>

    <HealthDefinition Name="FirewallServiceSecondServer" Title="CoreNetHealth!Microsoft.WindowsServerSolutions.CoreNetworking.Health.Resources#FirewallServiceTitle">
      <Filter>
        <Binary>
          <Assembly>HealthActions</Assembly>
          <Class>Microsoft.WindowsServerSolutions.NetworkHealth.Actions.SecondServerFilter</Class>
        </Binary>
      </Filter>
      <Condition>
        <Binary>
          <Assembly>CoreNetHealth</Assembly>
          <Class>Microsoft.WindowsServerSolutions.CoreNetworking.Health.FirewallServiceCondition</Class>
        </Binary>
      </Condition>
      <HealthStatusChange>
        <Status>Critical</Status>
      </HealthStatusChange>
      <Troubleshoot>
        <Steps>
          HealthActions!Microsoft.WindowsServerSolutions.NetworkHealth.Actions.HealthResources#FirewallDisabledSecondServerTroubleshootingSteps
        </Steps>
      </Troubleshoot>
    </HealthDefinition>
  </HealthDefinitions>
</Feature>