summaryrefslogtreecommitdiffstats
path: root/plugins.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-17 01:33:24 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-17 01:33:24 +0200
commit932e4df6549dd18e06d45e955d0053bb1f8aca25 (patch)
tree05bd110cac13c3ee81802f6effd4df12e665cc74 /plugins.d
parent2b797b0600c65a8fe5a8b839863ec7cb0e98fe3d (diff)
fix hipchat notifications; fixes #1526
Diffstat (limited to 'plugins.d')
-rwxr-xr-xplugins.d/alarm-notify.sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins.d/alarm-notify.sh b/plugins.d/alarm-notify.sh
index c70acc724d..2bfe89e6ea 100755
--- a/plugins.d/alarm-notify.sh
+++ b/plugins.d/alarm-notify.sh
@@ -24,7 +24,7 @@
# - kafka notifications by @ktsaou #1342
# - pagerduty.com notifications by Jim Cooley @jimcooley PR #1373
# - messagebird.com notifications by @tech_no_logical #1453
-# - hipchart notifications by @ktsaou #1561
+# - hipchat notifications by @ktsaou #1561
# -----------------------------------------------------------------------------
# testing notifications
@@ -1284,18 +1284,10 @@ SENT_PD=$?
# -----------------------------------------------------------------------------
# send hipchat message
-send_hipchat "${HIPCHAT_AUTH_TOKEN}" "${to_hipchat}" "
-<b>${alarm}</b> ${info_html}<br/>&nbsp;
-<small><b>${chart}</b><br/>Chart<br/>&nbsp;</small>
-<small><b>${family}</b><br/>Family<br/>&nbsp;</small>
-<small><b>${severity}</b><br/>Severity<br/>&nbsp;</small>
-<small><b>${date}${raised_for_html}</b><br/>Time<br/>&nbsp;</small>
-<a href=\"${goto_url}\">View Netdata</a><br/>&nbsp;
-<small><small>The source of this alarm is line ${src}</small></small>
-"
-
+send_hipchat "${HIPCHAT_AUTH_TOKEN}" "${to_hipchat}" "<b>${alarm}</b> ${info_html}<br/>&nbsp;<br/><small><b>${chart}</b><br/>Chart<br/>&nbsp;</small><br/><small><b>${family}</b><br/>Family<br/>&nbsp;</small><br/><small><b>${severity}</b><br/>Severity<br/>&nbsp;</small><br/><small><b>${date}${raised_for_html}</b><br/>Time<br/>&nbsp;</small><br/><a href=\"${goto_url}\">View Netdata</a><br/>&nbsp;<br/><small><small>The source of this alarm is line ${src}</small></small>"
SENT_HIPCHAT=$?
+
# -----------------------------------------------------------------------------
# send the email