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:

TargetMicrosoft.SystemCenter.HealthService
MonitorSystem.NetworkManagement.SNMPTrapPortAlreadyInUse.Monitor
Reset MonitorTrue
RemotableFalse
Timeout300
CategoryMaintenance
Enabledtrue
AccessibilityInternal

Member Modules:

ID Module Type TypeId RunAs 
DisableSNMPServicesRecoveryTask WriteAction System.NetworkManagement.DisableWinSNMP Default

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>