进程 Cron 服务运行状况

Microsoft.AIX.7.Process.Cron.Monitor (UnitMonitor)

AIX 7 进程 Cron 监视器

Knowledge Base article:

摘要

Cron 后台程序未运行。检查诊断和恢复结果以查看是否需要执行进一步的操作。

Cron 后台程序有利于执行计划的命令。

原因

不正常状态表示 Cron 后台程序未运行。

解决方法

运行“ps -ef | grep cron”或查看 Operations Manager 控制台中的诊断来检查系统上的后台程序。如果该进程已关闭,你可以通过使用命令 '/usr/sbin/cron &' 或单击 Operations Manager 控制台中的恢复链接来启动。

为了分析根本原因,请使用命令“errpt”检查系统日志文件,并查看失败时的任何相关条目。

Element properties:

TargetMicrosoft.AIX.7.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 后台程序未运行
服务器 {0} 上的 cron 后台程序未运行。
RunAsDefault

Source Code:

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