0
0
Fork 0
mirror of https://github.com/alerta/alerta-contrib.git synced 2025-03-18 14:22:52 +00:00
Commit graph

536 commits

Author SHA1 Message Date
Nick Satterly
15ff1f2552 feature(plugin): add support for Fifo topics to SNS plugin 2021-01-28 23:59:23 +01:00
Nick Satterly
614aa32efe
build: use github actions for CI/CD () 2021-01-06 01:23:41 +01:00
Matthew Jenkins
2efa8e1e47
style(mailer): add new line to warning message ()
line ending
2020-12-18 10:26:41 +01:00
Nick Satterly
60fb52cba0 build(slack): bump version 5.5.1 -> 5.5.2 2020-12-15 23:14:24 +01:00
Jarno Huuskonen
a714b9de08
fix(webhook): set alert status from action, not directly ()
Fixes 
2020-12-05 11:07:45 +01:00
Nick Satterly
d18494b812 [zabbix] User should be able to close if not yet ack'ed 2020-11-23 21:03:01 +01:00
Nick Satterly
59a976d5ae Update README 2020-11-21 12:15:08 +01:00
Nick Satterly
bc0de15765 Update READMEs 2020-11-20 22:39:32 +01:00
Matthieu Serrepuy
63f8827c8b
slack: Don't send recovery message if the previous_severity is in SLACK_SEVERITY_FILTER () 2020-11-19 22:50:05 +01:00
Nick Satterly
a08fd9be3a
HipChat has been discontinued () 2020-06-26 22:02:45 +02:00
eli
862c47064a
add SLACK_CHANNEL_MAP for environment and severity mapping ()
* making ICON_EMOJI optional

* adding SLACK_CHANNEL_MAP

* fix payload dictionary access

* update default ICON_EMOJI in readme

* require pytest>=5.4.3

Co-authored-by: Nick Satterly <nfsatterly@gmail.com>
2020-06-18 16:58:35 +02:00
mdfischer
2d0bf01c98
SLACK_SEVERITY_FILTER allows pre-filtering of alerts sent to Slack solely by severity ()
* Adds configuration setting SLACK_SEVERITY_FILTER (list) to allow filtering of alerts to be forwarded to Slack based upon their severity.

* Fixes incorrect parsing of list from alertad.conf for SLACK_SEVERITY_FILTER

* Updates comment in README

* Fixes incorrect string formatting.

* Reverses the logic of SLACK_SEVERITY_FILTER to be more permissive, such that alerts with severity matching one listed will NOT be forwarded to Slack (i.e. Alerts with severity not listed in SLACK_SEVERITY_FILTER will pass through the filter).

Co-authored-by: Michael Fischer <michael@marinelabs.io>
2020-06-14 22:26:40 +02:00
Jarno Huuskonen
45134a1033
telegram(plugin): For blackout action send alert.id (issue ). () 2020-06-11 00:38:35 +02:00
Nick Satterly
4387599071
Add comment about required auth scope 2020-06-07 21:43:29 +02:00
Nick Satterly
c4a253e644 Update README and AUTHORS 2020-04-27 13:02:05 +02:00
Nick Satterly
b66f140b46
Update travis CI config and add tests () 2020-04-18 21:14:40 +02:00
Matthieu Serrepuy
81608d8e6f
Add a statuscake webhook () 2020-04-11 15:55:16 +02:00
Yann Cézard
edf6326f60
Fix boolean env variable ()
* Correct handling of boolean env var.

* Use PluginBase get_config to do thye job.
2020-02-25 23:04:15 +01:00
Jarno Huuskonen
728e39e5cd
Msteams webhook ()
* msteams: MS_TEAMS_INBOUNDWEBHOOK_URL MS_TEAMS_APIKEY for msteams webhook

* msteams(webhook)

* msteams: escape backslashes (SCOM) in example-payload.json.j2

* msteams webhook: use list not a tuple.

* msteams webhook: comment tests that need mocking

* msteams webhook: tests: only send Content-Type header.
2020-02-25 22:59:30 +01:00
Ky-Anh Huynh
58023cc05d
plugin/alerta-prometheus: fix 500 error when response is not as expected ()
* plugin/alerta-prometheus: fix 500 error when response is not as expected

Alertmanager Api may respond with empty set of silenceIds, which may cause exception

"alerta.exceptions.ApiError: Alertmanager: ERROR - list indices must
 be integers or slices, not str"

This error is seen from the client, and the Alert can not be ACK-ed

* plugin/alerta-prometheus: minor code improvement
2020-02-20 12:42:10 +01:00
Nick Satterly
4d0961a003
Run pylint in build pipeline ()
* Run pylint in build pipeline

* Only report on pylint errors and fix them
2020-02-19 22:45:42 +01:00
Komal Gupta
e072f005e7 Alerta Ding Talk Plugin () 2020-01-21 15:09:14 +01:00
FloSew
77724f7013 Add Sentry version 9 webhook support ()
* Add support for Sentry version 9 callbacks ()
Add test for Sentry version 9 callback

* Rollback on some changes in the README.md file

* Add check on environment value for payload before Sentry version 9

Co-authored-by: Nick Satterly <nfsatterly@gmail.com>
2020-01-18 23:32:48 +01:00
FloSew
adba941103 Correct Sentry webhook test and check environment value () ()
Correct Sentry webhook payload parsing ()
2020-01-18 23:25:50 +01:00
Haluk Tutuk
0836ac391e fixed typo () 2019-11-28 21:41:36 +01:00
Matthieu Serrepuy
897f3f2de3 Add 2 new env variables/config to override slack channel per event or severity ()
Update documentation
2019-10-28 22:17:52 +01:00
iYUYUE
223edefa06 Python 3 renamed the unicode type to str () 2019-10-04 10:50:29 +02:00
Nick Satterly
13757fa026 Update README and AUTHORS 2019-10-03 20:42:07 +02:00
kamsrikanth
345518f3df Add AlertOps Plugin ()
* First commit

* Update README.md

Trigger Alerts in AlertOps.

* Revised Config Variables

* Update AlertOps Alerta Documentation Link
2019-10-03 09:26:02 +02:00
skob
4d7c858873 value for alerts about ssl expires ()
* fix

* comments

* forward plugin: [fix] ability to configure via env + refactor via @satterly comment

* forward: [fix] some bugs with forwarding

* urlmon: [impr] Ability to set differents endpoints for checkers

* urlmon: [impr] 2to3 + ssl expire check

Ability to run urlmon on py3 env.
Ability to check ssl expiration dates for monitored urls

* urlmon: [fix] typo

* urlmon: [fix] typo

* urlmon: [fix] remove urllib.__version__ from user-agent

* urlmon: [fix] typo error in connect

* urlmon: [fix] many fixes for ssl-checker

* urlmon: [fix] close old events

* urlmon: [impr] send alert when queue nore than 100 items

* urlmon: [fix] typo

* urlmon: [fix] send ok message

* urlmon: [impr] ssl value
2019-08-02 08:07:41 +02:00
Jarno Huuskonen
e3e3faec73 Msteams MS_TEAMS_PAYLOAD ()
* msteams: Set pymsteams http_timeout to MS_TEAMS_DEFAULT_TIMEOUT(7s) instead of
default 60s.

* msteams: refactor Jinja2 template loading to _load_template function.

* msteams: Add 'security' color to MS_TEAMS_DEFAULT_COLORS_MAP

* msteams: MS_TEAMS_PAYLOAD: use custom json payload for msteams messagecard
and use requests.post to send json payload to msteams. If MS_TEAMS_PAYLOAD
is not set continue to use pymsteams for creating/sending connectorcard.

* msteams: Add example for MS_TEAMS_PAYLOAD.
2019-08-01 09:23:32 +02:00
Yann Cézard
276ef31544 [mailer] Do not try to send an email to no recipient (empty contacts list) ()
* Do not try to send an email to no one.

* Fix list format for empty list (mail_to).

* Implicit length test.
2019-07-30 13:12:50 +02:00
Yann Cézard
34ce05bd97 Add SIGTERM signal handling (useful when used in Docker). () 2019-07-29 20:18:11 +02:00
Yann Cézard
9315d64aa5 Add an option to not send alert history in AMQP. () 2019-07-29 17:06:48 +02:00
Anton Markelov
bc6cd14ea5 allow inheritance of ack timeout for alertmanager () 2019-07-24 08:39:08 +02:00
Jarno Huuskonen
f1e5cc07ba telegram: TELEGRAM_SOUND_NOTIFICATION_SEVERITY config option to ()
enable/disable sound on telegram notifications (uses
disable_notification=False/True from sendMessage telegram api).
2019-07-12 17:13:24 +02:00
Jarno Huuskonen
2e121d22a7 Msteams colors MS_TEAMS_COLORS_MAP config option ()
* msteams: Customize alert colors with MS_TEAMS_COLORS_MAP

* msteams: change 'warning' color from 'BA2222' to '1E90FF', because
'BA2222' is too close to 'critical' color and '1E90FF' more closely
matches UI color.
2019-07-12 13:48:29 +02:00
Jarno Huuskonen
82c2b0feb1 Dynamic/per-message config in msteams plugin () 2019-07-11 20:10:00 +02:00
Jarno Huuskonen
8597bd58fd msteams: Add MS_TEAMS_TEXT_FMT Jinja2 template (string or file) that ()
customizes msTeamsMessage.text(alert.text) formatting.
Defaults to no formatting.
2019-07-10 22:07:06 +02:00
Sam Hampton
595f7412f5 Per-message config in slack plugin ()
* Per-message config in slack plugin

* Slack plugin: remove erroneous space
2019-07-05 19:12:59 +02:00
Jarno Huuskonen
0995652ef1 Allow MS_TEAMS_SUMMARY_FMT to be a filename to Jinja2 template file. () 2019-07-05 15:26:37 +02:00
Jarno Huuskonen
8ef4250ede Pymsteams api (not HipChat api) () 2019-07-05 15:25:45 +02:00
Jarno Huuskonen
2575df70a1 msteams: Move url assignment out of else. Otherwise custom ()
MS_TEAMS_SUMMARY_FMT fails with UnboundLocalError: local variable 'url'
referenced before assignment.
2019-07-03 19:40:32 +02:00
Jarno Huuskonen
087707a254 Document that telegram plugin TELEGRAM_TEMPLATE can be a filename pointing ()
to Jinja2 template(file).
2019-06-27 22:23:08 +02:00
Sam Hampton
72359286b3 Dynamic config in hipchat plugin () 2019-06-14 15:29:37 +02:00
Nick Satterly
61eadfdf90 Add postgres extra to alerta server install 2019-05-24 22:56:00 +02:00
Nick Satterly
c6ba21f702 Fix zabbix ack bitmasks for API v4.0 2019-05-24 14:05:06 +02:00
Nick Satterly
b218de65b6
Add debug plugin () 2019-05-18 00:03:16 +02:00
Nick Satterly
74834e6b66
[alerta-mailer] Fix HTML emails () 2019-05-17 14:57:33 +02:00
fshaikh-eg
b3ae980300 Update alerta_slack.py ()
added try/catch block around the SLACK_CHANNEL_ENV_MAP
2019-04-23 10:53:13 +02:00