Status cron-service verwerken

Microsoft.Linux.SLES.11.Process.Cron.Monitor (UnitMonitor)

Cron-monitor voor SUSE Linux Enterprise Server 11-processen

Knowledge Base article:

Samenvatting

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

De Cron-daemon vereenvoudigt het uitvoeren van geplande opdrachten.

Oorzaken

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

Oplossingen

Controleer de service op het systeem door het uitvoeren van 'ps -ef | grep cron' of door de diagnose in de Operations Manager-console te bekijken. Als de service niet actief is, kunt u het proces starten met de opdracht 'service crond restart' of door op de herstelkoppeling in de Operations Manager-console te klikken.

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

Element properties:

TargetMicrosoft.Linux.SLES.11.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
Cron-daemon is niet actief
De cron-daemon op server {0} is niet actief.
RunAsDefault

Source Code:

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