Replace _ with spaces for name variable for ntfy (#15909)
МАН69К committed
Sep 6, 2023 at 15:38 UTC
825503c171b83ee4534436c4f9d3d382ec2b11bc
1 file changed
+1
-1
health/notifications/alarm-notify.sh.in
+1
-1
@@ -2454,7 +2454,7 @@ send_ntfy() {
2454
msg="${host} ${status_message}: ${alarm} - ${info}"
2455
httpcode=$(docurl -X POST \
2456
-H "Icon: https://raw.githubusercontent.com/netdata/netdata/master/web/gui/dashboard/images/favicon-196x196.png" \
2457
- -H "Title: ${host}: ${name}" \
2457
+ -H "Title: ${host}: ${name//_/ }" \
2458
-H "Tags: ${emoji}" \
2459
-H "Priority: ${priority}" \
2460
-H "Actions: view, View node, ${goto_url}, clear=true;" \