控制器资源计量服务监视器

Microsoft.Websites.Monitoring.Controller.ResourceMeteringServiceMonitor (UnitMonitor)

针对控制器中的资源计量服务的监视器

Knowledge Base article:

摘要

用于检查控制器中的资源计量服务的服务状态的单元监视器运行正常。

原因

资源计量服务可能因为许多原因而停止运行,其中包括:

解决方法

1.检查 SQL Server 计算机是否正常运行,物理硬盘空间是否足够

2.检查 SQL 连接是否正常。

3.在查看事件日志后重新启动资源计量服务。

Element properties:

TargetMicrosoft.WebSites.Controller
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
控制器资源计量服务已停止运行。
资源计量服务未在运行。
请检查在控制器角色上运行的服务。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Websites.Monitoring.Controller.ResourceMeteringServiceMonitor" Accessibility="Public" Enabled="true" Target="MWL!Microsoft.WebSites.Controller" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Websites.Monitoring.Controller.ResourceMeteringServiceMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>ResourceMetering</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>