Status SSH-service verwerken

Microsoft.Linux.RHEL.5.Process.Ssh.Monitor (UnitMonitor)

SSH-monitor voor Red Hat Enterprise Linux Server 5-processen

Knowledge Base article:

Samenvatting

De SSH-daemon wordt niet uitgevoerd. Controleer de resultaten van de diagnose en het herstel om na te gaan of verdere actie is vereist.

De SSH-daemon heet sshd. Deze zorgt voor beveiligde, gecodeerde communicatie tussen twee niet-vertrouwde hosts over een onveilig netwerk. Ten minste één proces moet altijd actief zijn.

Oorzaken

Een slechte status geeft aan dat de SSH-daemon niet actief is.

Oplossingen

Controleer de service door het uitvoeren van 'ps -ef | grep sshd' of door de diagnose in de Operations Manager-console te bekijken. Start de service met de opdracht 'service sshd start' of door op de herstelkoppeling in de Operations Manager-console te klikken.

Controleer eerst de systeemlogboekbestanden (/var/log/messages) en (/var/log/secure) voor analyse van de hoofdoorzaak en bekijk alle verwante vermeldingen die gelijktijdig met de fout zijn gemaakt.

Element properties:

TargetMicrosoft.Linux.RHEL.5.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-daemon is niet actief.
De SSH-daemon op server {0} is niet actief.
RunAsDefault

Source Code:

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