Status code does not match the supplied criteria
This can happen for a few reasons:
The target URL is offline
The watcher node doesn't have the appropriate permissions
There may be a firewall between the watcher node and the target device
Try the following troubleshooting steps to attempt to fix the problem
Open IE to confirm that the target URL is online
Ensure that the Run As account used by the watcher node has the appropriate permissions to the target data source
Check if the Windows Firewall is enabled on either the target machine or the watcher node. If it is, create an exclusion for the application you are monitoring.
Target | Microsoft.LS.2010.UrlWatcher | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.LS.2010.Url.BasePage.StatusCode | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.LS.2010.Url.BasePage.StatusCodeMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.LS.2010.UrlWatcher" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.LS.2010.Url.BasePage.StatusCode" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.LS.2010.Url.BasePage.StatusCodeMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.LS.2010.UrlWatcher"]/UrlToTest$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="OK" MonitorTypeStateID="StatusCodeOK" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="StatusCodeErrorCriteriaTrue" HealthState="Error"/>
</OperationalStates>
<Configuration>
<RequestID>1</RequestID>
<Url>$Target/Property[Type="Microsoft.LS.2010.UrlWatcher"]/UrlToTest$</Url>
<IntervalSeconds>300</IntervalSeconds>
</Configuration>
</UnitMonitor>