jonnie
jonnie

Reputation: 12690

How can I get aws cloudwatch to fire alarm notifications repeatedly

We have aws alarms set up to email on alarm but we would like to continue to get the alarm notification even if the state is in Alarm without a state change. How could I achieve this (would be happy to use a lambda but no idea how to do it)

Upvotes: 0

Views: 1745

Answers (3)

kaushalparik27
kaushalparik27

Reputation: 804

One alternative is, to create a Lambda function to send email and host that function using CloudWatch Rule with Scheduled option and target as Lambda function that you have created. In Schedule option, you can set the frequency of time that you expect to receive email. In defined frequency, the Rule will trigger Lambda Function to send email. enter image description here

Upvotes: 0

John Rotenstein
John Rotenstein

Reputation: 269330

Amazon CloudWatch alarm notifications are only sent when the state of the alarm changes. It is not possible to configure CloudWatch to continually send notifications while in the ALARM state.

You would need to write your own code to send such notifications. This could be accomplished via a cron job, scheduled AWS Lambda function or your own application.

Upvotes: 1

drsromero
drsromero

Reputation: 311

Try with a script using Cloudwatch API for example with Boto3 + Python or a Lambda running every X minutes. I have a python script to get values from cloudwatch you can adapt it. http://www.dbigcloud.com/cloud-computing/230-integrando-metricas-de-aws-cloudwatch-en-zabbix.html

Upvotes: 0

Related Questions