Load Monitoring Module
Microsoft.ApacheHTTPServer.LoadModule.Task (Task)
Load the monitoring module (apache-cimprov) in the Apache configuration to enable monitoring. This task will restart the Apache HTTP Server. The default UNIX/Linux Agent Privileged account credentials for the computer will be used to load the module and may require sudo authorization.
Element properties: Member Modules:
Source Code: <Task ID="Microsoft.ApacheHTTPServer.LoadModule.Task" Target="Microsoft.ApacheHTTPServer.Installation.Unix" Accessibility="Public" Enabled="true">
<Category>Maintenance</Category>
<WriteAction ID="ServiceTask" TypeID="Unix!Microsoft.Unix.WSMan.Invoke.VarPriv.WriteAction">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<UserName>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/UserName$</UserName>
<Password>$RunAs[Name="Unix!Microsoft.Unix.PrivilegedAccount"]/Password$</Password>
<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>/opt/microsoft/apache-cimprov/bin/apache_config.sh -c</p:command><p:timeout>60</p:timeout></p:ExecuteCommand_INPUT></Input>
<TimeOutInMS>6000</TimeOutInMS>
</WriteAction>
</Task>