Stav obecné služby systému UNIX/Linux

Microsoft.Unix.Generic.Service.Monitor (UnitMonitor)

Monitorování obecné služby systému UNIX/Linux

Knowledge Base article:

Souhrn

Toto monitorování procesů sleduje proces služby nebo démona, který bude spuštěn.

Příčiny

Selhání značí, že služba nefunguje. K zastavení služby může vést mnoho příčin, například:

Řešení

Zkontrolujte službu v systému spuštěním příkazu ps -ef | grep {název_služby}, kde {název_služby} představuje název monitorované služby.

Element properties:

TargetMicrosoft.SystemCenter.UnixService
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.WSMan.Process.Status.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Výstraha monitorování služby systému UNIX/Linux
Služba {1} na serveru {0} není spuštěna.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Unix.Generic.Service.Monitor" Accessibility="Public" Target="Microsoft.SystemCenter.UnixService" TypeID="Unix!Microsoft.Unix.WSMan.Process.Status.MonitorType" Enabled="true" ParentMonitorID="Health!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Unix.Generic.Service.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="Microsoft.SystemCenter.UnixService"]/ServiceName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="Running" ID="Running"/>
<OperationalState HealthState="Error" MonitorTypeStateID="NotRunning" ID="NotRunning"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<ProcessName>$Target/Property[Type="Microsoft.SystemCenter.UnixService"]/ServiceName$</ProcessName>
<Interval>300</Interval>
</Configuration>
</UnitMonitor>