Disable Windows SNMP Service Recovery
System.NetworkManagement.DisableWinSNMP.ServiceMonitor.Recovery (Recovery)
The following recovery will disable the Windows SNMP Service. Operations Manager cannot receive SNMP traps while this service is running.
Element properties:
Member Modules:
Source Code:
<Recovery ID="System.NetworkManagement.DisableWinSNMP.ServiceMonitor.Recovery" Accessibility="Internal" Enabled="true" Target="SystemCenter!Microsoft.SystemCenter.HealthService" Monitor="System.NetworkManagement.SNMPTrapPortAlreadyInUse.Monitor" ResetMonitor="true" ExecuteOnDiagnostic="System.NetworkManagement.CheckSNMPTrapService.Diagnostic" Remotable="false" Timeout="300">
<Category>Maintenance</Category>
<WriteAction ID="DisableSNMPServicesRecoveryTask" TypeID="System.NetworkManagement.DisableWinSNMP">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<SNMPTrapServiceName>snmptrap</SNMPTrapServiceName>
<SNMPServiceName>snmp</SNMPServiceName>
</WriteAction>
</Recovery>