-H "Authorization: Bearer ${authtoken}" \
-d "{\"color\": \"${color}\", \"from\": \"${netdata}\", \"message_format\": \"${msg_format}\", \"message\": \"${message}\", \"notify\": \"${notify}\"}" \
"https://api.hipchat.com/v2/room/${room}/notification")
-
- if [ "${httpcode}" == "200" ]
+
+ if [ "${httpcode}" == "204" ]
then
info "sent HipChat notification for: ${host} ${chart}.${name} is ${status} to '${room}'"
sent=$((sent + 1))
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>\
+${host} <b>${severity}</b> on chart <b>${chart}</b><br/> (family <b>${family}</b><br/>)\
+Time <b>${date}${raised_for_html}</b><br/>\
+<a href=\\\"${goto_url}\\\">View Netdata</a>\
+(the source of this alarm is line ${src})\
"
SENT_HIPCHAT=$?