diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-17 01:33:24 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-02-17 01:33:24 +0200 |
commit | 932e4df6549dd18e06d45e955d0053bb1f8aca25 (patch) | |
tree | 05bd110cac13c3ee81802f6effd4df12e665cc74 /plugins.d | |
parent | 2b797b0600c65a8fe5a8b839863ec7cb0e98fe3d (diff) |
fix hipchat notifications; fixes #1526
Diffstat (limited to 'plugins.d')
-rwxr-xr-x | plugins.d/alarm-notify.sh | 14 |
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/> -<small><b>${chart}</b><br/>Chart<br/> </small> -<small><b>${family}</b><br/>Family<br/> </small> -<small><b>${severity}</b><br/>Severity<br/> </small> -<small><b>${date}${raised_for_html}</b><br/>Time<br/> </small> -<a href=\"${goto_url}\">View Netdata</a><br/> -<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/> <br/><small><b>${chart}</b><br/>Chart<br/> </small><br/><small><b>${family}</b><br/>Family<br/> </small><br/><small><b>${severity}</b><br/>Severity<br/> </small><br/><small><b>${date}${raised_for_html}</b><br/>Time<br/> </small><br/><a href=\"${goto_url}\">View Netdata</a><br/> <br/><small><small>The source of this alarm is line ${src}</small></small>" SENT_HIPCHAT=$? + # ----------------------------------------------------------------------------- # send the email |