slack messages now show the sending host at their footer
Costa Tsaousis (ktsaou) committed
Sep 7, 2017 at 11:32 UTC
8fc30470c57904adbc800da4dcc8ce54cc8a1905
1 file changed
+3
-3
plugins.d/alarm-notify.sh
+3
-3
@@ -1001,7 +1001,7 @@ send_hipchat() {
1001
httpcode=$(docurl -X POST \
1002
-H "Content-type: application/json" \
1003
-H "Authorization: Bearer ${authtoken}" \
1004
- -d "{\"color\": \"${color}\", \"from\": \"${netdata}\", \"message_format\": \"${msg_format}\", \"message\": \"${message}\", \"notify\": \"${notify}\"}" \
1004
+ -d "{\"color\": \"${color}\", \"from\": \"${host}\", \"message_format\": \"${msg_format}\", \"message\": \"${message}\", \"notify\": \"${notify}\"}" \
1005
"https://${HIPCHAT_SERVER}/v2/room/${room}/notification")
1006
1007
if [ "${httpcode}" == "204" ]
@@ -1138,7 +1138,7 @@ send_slack() {
1138
}
1139
],
1140
"thumb_url": "${image}",
1141
- "footer": "<${goto_url}|${host}>",
1141
+ "footer": "by <${goto_url}|${this_host}>",
1142
"ts": ${when}
1143
}
1144
]
@@ -1201,7 +1201,7 @@ send_discord() {
1201
],
1202
"thumb_url": "${image}",
1203
"footer_icon": "${images_base_url}/images/seo-performance-128.png",
1204
- "footer": "${host}",
1204
+ "footer": "${this_host}",
1205
"ts": ${when}
1206
}
1207
]