處理序 SSH 服務健全狀況

Microsoft.AIX.6.1.Process.Ssh.Monitor (UnitMonitor)

AIX 6.1 處理序 SSH 監視

Knowledge Base article:

摘要

此處理序監視會監看 SSHD 處理序是否正在執行。SSHD 是 SSH 的服務精靈。它會取代 rlogin 和 rsh,並提供不安全網路上兩部不受信任主機之間的安全加密通訊。不論任何時候,系統中都應該有至少一個正在執行的處理序。 

原因

發生失敗表示系統上的 SSH 服務已關閉。

解決方式

執行 'ps -ef | grep sshd' 或檢視 Operations Manager 主控台中的診斷資料,以檢查系統上的服務。如果服務已關閉,您可使用 'startsrc -s sshd' 命令或按一下 Operations Manager 主控台中的復原連結來啟動處理序。

若要分析根本原因,請使用 'errpt' 命令來檢查系統記錄檔,並檢視發生失敗時的任何相關項目。

Element properties:

TargetMicrosoft.AIX.6.1.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
AIX 6.1 處理序 SSH 監視警示
伺服器 {0} 上的 SSH 服務精靈未執行
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.AIX.6.1.Process.Ssh.Monitor" Accessibility="Public" Target="Microsoft.AIX.6.1.OperatingSystem" TypeID="Unix!Microsoft.Unix.WSMan.Process.Status.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.AIX.6.1.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>