fixed alarm-notify.sh
Costa Tsaousis (ktsaou) committed
Jul 12, 2018 at 22:28 UTC
fa3d92f506ec96e3e553d16a65abd9f36321ea43
1 file changed
+4
-4
plugins.d/alarm-notify.sh
+4
-4
@@ -1401,10 +1401,10 @@ send_msteam() {
1401
}
1402
EOF
1403
)"
1404
-
1405
- # Replacing in the webhook CHANNEL string by the MS Teams channel name from conf file.
1406
- webhook=$(echo "${webhook//CHANNEL/${channel}})"
1407
-
1404
+
1405
+ # Replacing in the webhook CHANNEL string by the MS Teams channel name from conf file.
1406
+ webhook="${webhook//CHANNEL/${channel}}"
1407
+
1408
httpcode=$(docurl -H "Content-Type: application/json" -d "${payload}" "${webhook}")
1409
1410
if [ "${httpcode}" = "200" ]