This monitor checks if provided credentials have enough permissions to access Ambari API.
This monitor checks if provided credentials have enough permissions to access Ambari API by executing synthetic transaction to clusters list URL.
Server returned "(401) Unauthorized" or "(403) Forbidden" when trying to access Ambari API.
Make sure that credentials specified in the RunAs account, associated with target HDInsight service, are correct.
If account password has been changed or reset recently, your Run As account needs to reflect this change as well.
Target | Microsoft.HDInsight.Ambari | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.HDInsight.UnitMonitorType.SyntheticTransaction | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.HDInsight.UnitMonitor.ApiAccessDenied" TypeID="Microsoft.HDInsight.UnitMonitorType.SyntheticTransaction" Target="Microsoft.HDInsight.Ambari" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" Accessibility="Public" Enabled="true" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.HDInsight.UnitMonitor.ApiAccessDenied.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.HDInsight.Ambari"]/AmbariUri$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='Description']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Unhealthy" MonitorTypeStateID="Unhealthy" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<UnhealthyStatusPattern>^(Forbidden|Unauthorized)$</UnhealthyStatusPattern>
</Configuration>
</UnitMonitor>