CloudWatch of AWS Instance connection or unexpected restarts

Dear Experts,

Can we configure AWS CloudWatch to do the following monitoring roles?

1. Disconnection of instance to customer firewall as we configured VPC connection
2. Server instance suddenly shuts down or restarts unexpectedly.
Anonymous KHIT EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel SakrRounded IT Consultant / Projects manager / Cloud Consultant / IT PlanningCommented:

1.I did not understand exactly what is required here, if NEtwork connectivity, check the Health service
2. Yes, in the cloudwatch rule to create select in the source event pattern, Service name EC2, Event type: EC2 instance state change notification, select specific state and in the drop down select the state you want to monitor (shutting down)
Anonymous KHIT EngineerAuthor Commented:
For the network connectivity, we have configured their Sophos Firewall to connect to the AWS with 2 VPN connections.

Is there a way to configure a notification if either one or both connections to the AWS are down?
Anonymous KHIT EngineerAuthor Commented:
How do I configure notification in CloudWatch when an undesired status of the instance is detected?
Anonymous KHIT EngineerAuthor Commented:
I have created a cloudwatch to monitor instance status (Any).

    "metrics": [
        [ "AWS/EC2", "StatusCheckFailed", "InstanceId", "i-0dd2276c7c022ec9e" ]
    "period": 60,
    "stat": "Maximum",
    "title": "Instance_Status_Check_Failed",
    "region": "ap-southeast-1",
    "view": "timeSeries",
    "stacked": false

But the state is "INSUFFICIENT_DATA"

The instance Alarm Status is "No Data"

What is the threshold config like as I do not understand it.
Ramasamy PanchavarnamSenior Technical ArchitectCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.