diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2020-04-08 23:39:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 23:39:52 +0300 |
commit | 9cf4f9e703729541b7db9185fb47148f03803595 (patch) | |
tree | 39a76687a1a9ce88d7fd90d105660558d34e4a5a | |
parent | 6b63ba8fe52b490f83c1983645c16f1f49591149 (diff) |
health/alarm_notify: add dynatrace enabled check (#8654)
-rwxr-xr-x | health/notifications/alarm-notify.sh.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/health/notifications/alarm-notify.sh.in b/health/notifications/alarm-notify.sh.in index 64dc83d008..d580f38e7e 100755 --- a/health/notifications/alarm-notify.sh.in +++ b/health/notifications/alarm-notify.sh.in @@ -1914,6 +1914,8 @@ EOF # ----------------------------------------------------------------------------- # Dynatrace sender send_dynatrace() { + [ "${SEND_DYNATRACE}" != "YES" ] && return 1 + local dynatrace_url="${DYNATRACE_SERVER}/e/${DYNATRACE_SPACE}/api/v1/events" local description="NetData Notification for: ${host} ${chart}.${name} is ${status}" local payload="" |