BranchCache Service Status

Microsoft.Windows.BranchCache.HostedCacheClient.Monitor.ServiceShutdown (UnitMonitor)

Monitors the BranchCache Service status.

Knowledge Base article:

Summary

This monitor verifies the BranchCache service status.

Causes

Service shutdown happens when the service encounters a fatal error, or an update is installed that needs to stop the service, or the system administrator shuts the service down, or during the system shutdown/reboot process.

Resolutions

Please click on the following task to start the BranchCache service: Start the BranchCache service

Element properties:

TargetMicrosoft.Windows.BranchCache.HostedCacheClientNode
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.BranchCache.HostedCacheClient.Monitor.ServiceShutdown" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.BranchCache.HostedCacheClientNode" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Property[Type="Microsoft.Windows.BranchCache.ClientSideServiceBase"]/NodeName$</FirstComputerName>
<FirstLogName>Microsoft-Windows-BranchCache/Operational</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">2</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-BranchCache</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Property[Type="Microsoft.Windows.BranchCache.ClientSideServiceBase"]/NodeName$</SecondComputerName>
<SecondLogName>Microsoft-Windows-BranchCache/Operational</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-BranchCache</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>