SMTP settings and Grafana alerts on Nextcloud Talk

This commit is contained in:
2024-12-21 12:46:00 -05:00
parent 9d5e904d52
commit 875530beca
5 changed files with 87 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
message="$(echo $1| sed 's/.*"message":"\(.*\).."}/\1/')"
curl -X POST \
-H "Content-Type: application/json" \
-H "OCS-APIRequest: true" \
https://nextcloud.eom.dev/ocs/v2.php/apps/spreed/api/v1/chat/x3wy62mb \
-u Grafana:$GRAFANA_ADMIN_PASSWORD \
-d "{\"token\": \"x3wy62mb\", \"message\": \"$message\"}"