Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amazon SES Web API Integration #639

Closed
wants to merge 0 commits into from

Conversation

matthias1232
Copy link

This Code implements sending Mails with the Amazon SES WEB API

Mails from CheckMK can be sent directly via https request through the Amazom Simple Email Service.

To get it working the following python libraries need to be integrated in checkmk:

botocore
boto3

Screenshots:
image
image

Notify Log
2023-10-20 00:01:11,719 [20] [cmk.base.notify] ---------------------------------------------------------------------- 2023-10-20 00:01:11,719 [20] [cmk.base.notify] Got raw notification (localhost) context with 44 variables 2023-10-20 00:01:11,720 [20] [cmk.base.notify] Global rule 'Notify all contacts of a host/service via HTML email'... 2023-10-20 00:01:11,720 [20] [cmk.base.notify] -> matches! 2023-10-20 00:01:11,720 [20] [cmk.base.notify] - adding notification of cmkadmin via mail 2023-10-20 00:01:11,720 [20] [cmk.base.notify] Executing 1 notifications: 2023-10-20 00:01:11,720 [20] [cmk.base.notify] * notifying cmkadmin via mail, parameters: from, amazonses, graphs_per_notification, notifications_with_graphs, bulk: no 2023-10-20 00:01:11,720 [20] [cmk.base.notify] Creating spoolfile: /omd/sites/monitoring/var/check_mk/notify/spool/c4fb8568-7be0-41d1-af8a-1677a990f64f 2023-10-20 00:01:15,198 [20] [cmk.base.notify] ---------------------------------------------------------------------- 2023-10-20 00:01:15,198 [20] [cmk.base.notify] Got spool file c4fb8568 (localhost) for local delivery via mail 2023-10-20 00:01:15,198 [20] [cmk.utils.notify] sending command LOG;HOST NOTIFICATION: cmkadmin;localhost;UP;mail;Packet received via smart PING 2023-10-20 00:01:15,199 [20] [cmk.base.notify] executing /omd/sites/monitoring/share/check_mk/notifications/mail 2023-10-20 00:01:15,776 [20] [cmk.base.notify] Output: Email sent! Message ID: 0107018b49f50581-7fe00b23-93ea-4d31-a711-7ebaa228d305-000000 | Used Configuration Set: XXX| Used AWS Region: eu-central-1 2023-10-20 00:01:20,190 [20] [cmk.base.notify] ---------------------------------------------------------------------- 2023-10-20 00:01:20,190 [20] [cmk.base.notify] Got spool file ebda51e3 (localhost) for local delivery via mail 2023-10-20 00:01:20,190 [20] [cmk.utils.notify] sending command LOG;HOST NOTIFICATION: cmkadmin;localhost;UP;mail;Packet received via smart PING 2023-10-20 00:01:20,190 [20] [cmk.base.notify] executing /omd/sites/monitoring/share/check_mk/notifications/mail 2023-10-20 00:01:20,745 [20] [cmk.base.notify] Output: Email sent! Message ID: 0107018b49f5190e-74f715c7-869c-4b80-8287-2d288bc23622-000000 | Used Configuration Set: XXX| Used AWS Region: eu-central

@github-actions
Copy link

github-actions bot commented Oct 19, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@matthias1232
Copy link
Author

I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.

@matthias1232
Copy link
Author

recheck

@TimotheusBachinger
Copy link
Contributor

Dear Checkmk Contributor! Unfortunately, we had to re-write our git-repo history, rendering your PR auto-closed. We will therefore rebase your PR onto the current master and reopen it again. Sorry for the inconvenience.

@TimotheusBachinger
Copy link
Contributor

Dear Contributor. Unfortunately, we learned that re-opening a PR which was force-rebased, is not possible (see isaacs/github#361). Therefore we kindly ask you to create a new PR for your change. We apologize for the circumstances and will implement technical measures to prevent such incidents in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants