进程 Syslog 服务运行状况

Microsoft.Solaris.8.Process.Syslog.Monitor (UnitMonitor)

Solaris 8 进程 Syslog 监视器

Knowledge Base article:

摘要

进程监视器监视 Syslog 后台程序是否正在运行。

原因

不正常状态表示 SYSlog 后台程序当前不可用。

解决方法

使用 'ps -ef | grep syslog' 或查看 Operations Manager 控制台中的诊断来检查系统上的服务。如果该进程已关闭,您可以通过使用命令 '/etc/init.d/syslog start' 或单击 Operations Manager 控制台中的恢复链接来启动。

对于根本原因分析,首先检查系统日志文件 (/var/adm/messages),查看失败时的相关条目。您还可检查系统的任一进程核心文件。使用 '/usr/bin/pstack [corefile]' 来打印有助于确定故障原因的堆栈跟踪。

Element properties:

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