Stan uruchomienia usługi

Microsoft.SystemCenter.NTService.ServiceStateMonitor (UnitMonitor)

Monitoruje bieżący stan usługi systemu Windows. Alert tego monitora oznacza, że usługa systemu Windows nie jest aktualnie uruchomiona

Knowledge Base article:

Podsumowanie

Ten monitor sprawdza stan usługi systemu Windows przy użyciu kwerend WMI wykonywanych co określony interwał czasu. Jeśli usługa ma ustawione uruchamianie automatyczne i nie jest obecnie uruchomiona, zgłoszony zostanie alert. Jeśli usługa ma ustawione uruchamianie ręczne lub jest wyłączona, jej zatrzymanie nie będzie powodować zgłoszenia alertu.

Przyczyny

Usługa może zostać zatrzymana z wielu powodów, takich jak:

Rozwiązania

Wszystkie zebrane zdarzenia dotyczące tej usługi można wyświetlić przy użyciu następującego łącza:

Wyświetl wszystkie zdarzenia

Usługę systemu Windows można spróbować uruchomić ponownie przy użyciu następującego łącza:

Uruchom usługę

Element properties:

TargetMicrosoft.SystemCenter.NTService
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityLow
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityInternal
Alert Message
Usługa systemu Windows jest zatrzymana
Usługa „{0}” na komputerze {1} przestała działać
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.NTService.ServiceStateMonitor" Accessibility="Internal" Target="Microsoft.SystemCenter.NTService" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ParentMonitorID="Health!System.Health.AvailabilityState" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.NTService.ServiceStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Low</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="Running" ID="Success"/>
<OperationalState HealthState="Error" MonitorTypeStateID="NotRunning" ID="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>$Target/Property[Type="Microsoft.SystemCenter.NTService"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>