进程 Syslog 服务运行状况

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

Red Hat Enterprise Linux Server 5 进程 syslog 监视器

Knowledge Base article:

摘要

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

Syslog 后台程序实现消息日志记录以及到文件和用户的转发。

原因

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

解决方法

运行“ps -ef | grep rsyslogd”或查看 Operations Manager 控制台中的诊断来检查系统上的服务。如果该进程已关闭,你可以通过使用命令“service rsyslog restart”或单击 Operations Manager 控制台中的恢复链接来启动。

对于根本原因分析,请首先检查日志文件 (/var/log/messages),在失败时查看相关条目。

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

Source Code:

<UnitMonitor ID="Microsoft.Linux.RHEL.5.Process.Syslog.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.Syslog.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>syslogd</ProcessName>
<Interval>300</Interval>
</Configuration>
</UnitMonitor>