进程 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>