處理序 SSH 服務健全狀況

Microsoft.Linux.SLES.9.Process.Ssh.Monitor (UnitMonitor)

SUSE Linux Enterprise Server 9 處理序 SSH 監視

Knowledge Base article:

摘要

SSH 服務精靈並未執行。 請查看診斷與復原結果,確定是否需要進行其他動作。

SSH 的服務精靈名稱為 sshd。 它透過不安全的網路為兩部不受信任的主機提供進行安全加密的通訊。 不論任何時候,系統中都應該有至少一個正在執行的處理序。 

原因

狀況不良狀態表示 SSH 服務精靈並未執行。

解決方式

執行 ps -ef | grep sshd 或檢視 Operations Manager 主控台中的診斷資料,以檢查服務。 請執行 "service sshd start" 命令或按一下 Operations Manager 主控台中的復原連結來啟動。

若要分析根本原因,請先檢查系統記錄檔 (/var/log/messages) 及 (/var/log/secure),並檢視發生失敗時的任何相關項目。

Element properties:

TargetMicrosoft.Linux.SLES.9.OperatingSystem
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
SSH 服務精靈並未執行
伺服器 {0} 上的 SSH 服務精靈並未執行。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Linux.SLES.9.Process.Ssh.Monitor" Accessibility="Public" Target="Microsoft.Linux.SLES.9.OperatingSystem" TypeID="Unix!Microsoft.Unix.WSMan.Process.Status.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.SLES.9.Process.Ssh.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>
</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>sshd</ProcessName>
<Interval>300</Interval>
</Configuration>
</UnitMonitor>