Amazon Elastic Beanstalk Environment Health Unit Monitor

Amazon.AmazonWebServices.UnitMonitor.ElasticBeanStalkHealthStatusCheckUnitMonitor (UnitMonitor)

It is a monitor for Elastic Beanstalk Environment Health Status Check

Knowledge Base article:

Summary

It is a script three-state monitor which is used for Amazon Elastic Beanstalk Environment Status. It switches state depending on Beanstalk Environment Status Check.

Monitor is in Healthy state when Environment status is:

Monitor is in Warning state when Environment status is:

Monitor is in Error state when Environment status is:

Causes

This monitor depends on Environment Health status check.

Resolutions

Investigate reason why Environment failed to pass status check in Amazon Console

Element properties:

TargetAmazon.AmazonWebServices.ElasticBeanStalkApplicationEnvironmentHealth
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeAmazon.AmazonWebServices.MonitorType.ElasticBeanStalkHealthStatusCheckUnitMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Amazon Elastic Beanstalk Environment Health Alert
The Beanstalk Environment '{0}' failed to pass status check.
RunAsDefault

Source Code:

<UnitMonitor ID="Amazon.AmazonWebServices.UnitMonitor.ElasticBeanStalkHealthStatusCheckUnitMonitor" Target="Amazon.AmazonWebServices.ElasticBeanStalkApplicationEnvironmentHealth" ParentMonitorID="Health!System.Health.AvailabilityState" TypeID="Amazon.AmazonWebServices.MonitorType.ElasticBeanStalkHealthStatusCheckUnitMonitorType" Remotable="true" Priority="Normal" ConfirmDelivery="false" Accessibility="Public" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Amazon.AmazonWebServices.UnitMonitor.ElasticBeanStalkHealthStatusCheckUnitMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<WorkFlowName>ElasticBeanStalkHealthStatusCheckUnitMonitor</WorkFlowName>
<StartTimeInSeconds>80</StartTimeInSeconds>
<IntervalTimeInSeconds>900</IntervalTimeInSeconds>
<EnvironmentId>$Target/Property[Type='Amazon.AmazonWebServices.ElasticBeanStalkApplicationEnvironmentHealth']/EnvironmentID$</EnvironmentId>
<RegionName>$Target/Property[Type='Amazon.AmazonWebServices.Component']/RegionName$</RegionName>
</Configuration>
</UnitMonitor>