Firewall configuration

Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.FirewallSettings (UnitMonitor)

Monitors if the iSCSI target port has a firewall exclusion rule set

Knowledge Base article:

Summary

This monitor checks the configuration of inbound firewall rules for the iSCSI Target Service and generates an alert if the iSCSI port is blocked. The monitor checks for TCP port 3260 by default although this can be changed by an override on the monitor if required.

If the inbound port is not enabled, no remote iSCSI initiators will be able to connect to the server and iSCSI disks will not be available for use.

If the health state is unknown, monitoring has either not begun or the monitor may have been disabled for this object.

Causes

This monitor can be unhealthy for the following reasons:

Resolutions

Determine if Windows Firewall is enabled

To determine if Windows Firewall is enabled, use the following procedure on the affected server:

Determine if firewall rules are enabled

To determine if the firewall rules for the ports are enabled, use the following procedure on the affected server:

This monitor automatically resets to a Healthy state after you resolve the issue although there may be a long delay as the monitor does not perform this check frequently. To force the monitor to reset and check the state again, select the monitor from Health Explorer and click Reset Health.

Update the monitor configuration

If the iSCSI Target has been configured to use a non-default port, follow the configuration steps in the management pack guide to update the monitor configuration with the new port number.

Element properties:

TargetMicrosoft.Windows.FileServices.Service.iSCSITarget.10.0
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.FileServices.Service.iSCSITarget.10.0.FirewallCheck
RemotableFalse
AccessibilityPublic
Alert Message
iSCSI target firewall configuration invalid
The firewall on computer '{0}' is not configured correctly for the iSCSI target to be accessed by iSCSI initiators
RunAsMicrosoft.Windows.FileServices.MonitoringAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.FirewallSettings" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="false" TypeID="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.FirewallCheck" ConfirmDelivery="false" RunAs="FileServices!Microsoft.Windows.FileServices.MonitoringAccount">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServices.Service.iSCSITarget.10.0.FirewallSettings.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirewallConfigured" MonitorTypeStateID="FirewallPortOpen" HealthState="Success"/>
<OperationalState ID="FirewallNotConfigured" MonitorTypeStateID="FirewallPortNotOpen" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>7200</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<PortNumber>3260</PortNumber>
</Configuration>
</UnitMonitor>