Diagnostyka stanu usługi Cron
Microsoft.Linux.SLES.11.Process.Cron.Diagnostic (Diagnostic)
Element properties:
Member Modules:
Source Code:
<Diagnostic ID="Microsoft.Linux.SLES.11.Process.Cron.Diagnostic" Accessibility="Public" Enabled="true" Target="Microsoft.Linux.SLES.11.OperatingSystem" Monitor="Microsoft.Linux.SLES.11.Process.Cron.Monitor" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ProbeAction ID="ExecuteCommand" TypeID="Unix!Microsoft.Unix.WSMan.Invoke.ProbeAction">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem?__cimnamespace=root/scx</Uri>
<Selector/>
<InvokeAction>ExecuteCommand</InvokeAction>
<Input><p:ExecuteCommand_INPUT xmlns:p="http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_OperatingSystem"><p:command>sh -c 'ps -ef | grep cron | grep -v grep'</p:command><p:timeout>60</p:timeout></p:ExecuteCommand_INPUT></Input>
</ProbeAction>
</Diagnostic>