Amazon EC2 Instance Status Check State

Amazon.AmazonWebServices.UnitMonitor.AmazonInstanceStatusCheckState (UnitMonitor)

It is a monitor for EC2 Instance Status Check

Knowledge Base article:

Summary

It is a script three-state monitor which is used for EC2 Instance Status. It switches state depending on EC2 Instance Status Check.

Monitor is in Healthy state when EC2 Instance status is:

Monitor is in Warning state when EC2 Instance status is:

Monitor is in Error state when EC2 Instance status is:

Causes

This monitor depends on EC2 Instance status check.

Resolutions

Investigate reason why EC2 Instance failed to pass status check in Amazon Console

Element properties:

TargetAmazon.AmazonWebServices.AmazonInstanceHealth
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeAmazon.AmazonWebServices.MonitorType.AmazonInstanceStatusCheckThreeStateType
RemotableTrue
AccessibilityPublic
Alert Message
Amazon EC2 Instance Status Check Alert
The EC2 Instance '{0}' failed to pass status check.
RunAsDefault

Source Code:

<UnitMonitor ID="Amazon.AmazonWebServices.UnitMonitor.AmazonInstanceStatusCheckState" Target="Amazon.AmazonWebServices.AmazonInstanceHealth" ParentMonitorID="Health!System.Health.AvailabilityState" TypeID="Amazon.AmazonWebServices.MonitorType.AmazonInstanceStatusCheckThreeStateType" Remotable="true" Priority="Normal" ConfirmDelivery="false" Accessibility="Public" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Amazon.AmazonWebServices.UnitMonitor.AmazonInstanceStatusCheckState.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>AmazonInstanceStatusCheckState</WorkFlowName>
<StartTimeInSeconds>60</StartTimeInSeconds>
<IntervalTimeInSeconds>900</IntervalTimeInSeconds>
<InstanceId>$Target/Property[Type='Amazon.AmazonWebServices.AmazonInstanceHealth']/InstanceId$</InstanceId>
<RegionName>$Target/Property[Type='Amazon.AmazonWebServices.Component']/RegionName$</RegionName>
</Configuration>
</UnitMonitor>