Update 'README.MD'
This commit is contained in:
12
README.MD
12
README.MD
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
### Quickstart
|
### Quickstart
|
||||||
|
|
||||||
Pull the whole thing with git.
|
Pull the whole thing with git.
|
||||||
``` git clone https://gitea.rabjerg.de/Rabjerg/grafana_twilio_webhook.git ```
|
``` git clone https://gitea.rabjerg.de/Rabjerg/grafana_twilio_webhook.git ```
|
||||||
|
|
||||||
Copy ``` secrets.env.sample ``` to ``` secrets.env ``` and fill it with your twilio credientals and sender/reciever phone number.
|
Copy ``` secrets.env.sample ``` to ``` secrets.env ``` and fill it with your twilio credientals and sender/reciever phone number.
|
||||||
@@ -17,10 +17,10 @@ now test that everything works by running ``` run.sh ```
|
|||||||
|
|
||||||
Go to your grafana server and select "Alerting" -> "Notifications" -> "Create new notification channel"
|
Go to your grafana server and select "Alerting" -> "Notifications" -> "Create new notification channel"
|
||||||
|
|
||||||
Name: "Twilio SMS Webhook"
|
Name: "Twilio SMS Webhook"
|
||||||
type: "Webhook"
|
type: "Webhook"
|
||||||
URL: "http://{server_ip}:5000/grafana_webhook"
|
URL: "http://{server_ip}:5000/grafana_webhook"
|
||||||
HTTP Method: "POST"
|
HTTP Method: "POST"
|
||||||
|
|
||||||
With the server running, you can now press "test" and should get a test notification per SMS.
|
With the server running, you can now press "test" and should get a test notification per SMS.
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ copy ``` .etc/systemd/system/twilio_webhook.service ``` to ``` /etc/systemd/syst
|
|||||||
edit the ``` /etc/systemd/system/twilio_webhook.service ``` Important is that ``` ExecStart= ``` points to the absolute path of ``` run.sh ``` and ``` WorkingDirectory= ``` points to the directory with ``` run.sh ```
|
edit the ``` /etc/systemd/system/twilio_webhook.service ``` Important is that ``` ExecStart= ``` points to the absolute path of ``` run.sh ``` and ``` WorkingDirectory= ``` points to the directory with ``` run.sh ```
|
||||||
|
|
||||||
|
|
||||||
Now do ``` sudo systemctl daemon-reload ``` to load the new unit.
|
Now do ``` sudo systemctl daemon-reload ``` to load the new unit.
|
||||||
and ``` sudo systemctl start twilio_webhook.service --now ``` to start the service.
|
and ``` sudo systemctl start twilio_webhook.service --now ``` to start the service.
|
||||||
|
|
||||||
Everything should be set up and running from now on.
|
Everything should be set up and running from now on.
|
||||||
Reference in New Issue
Block a user