You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NOTE** however that the server presents a web interface which requires a login, so you'll need to add at least one user to the system. This can be done while the server is running, or before you launch it:
37
+
The server presents a web interface which requires a login, so you'll also want to add at least one use - this can be done while the server is running, or before you launch it:
32
38
33
39
~ $ purppura add-user
34
40
Enter Username: moi
35
41
Enter Password: kissa
36
42
~ $
37
43
38
-
You should now be able to login to the web interface with username `steve` and password `secret`. You can use the `del-user` sub-command to remove the user in the future, or the "list-users" sub-command to see the users.
44
+
> **NOTE**: Adding the user will also require the `$PURPLE_DSN` variable to be set.
45
+
46
+
Once the user has been added you should be able to login to the web interface with username `moi` and password `kissa`.
47
+
48
+
You can use the `del-user` sub-command to remove the user in the future, or the `list-users` sub-command to see the users which are present.
39
49
40
50
41
51
# Alerts
@@ -76,13 +86,13 @@ Further details are available in the [alert guide](ALERTS.md) - and you can see
76
86
77
87
The web-based user-interface lists alerts which are pending, raised, or acknowledges. While this is useful it isn't going to wake anybody up if something fails overnight, so we have to allow notification via SMS, WhatsApp, etc.
78
88
79
-
There is no built-in facility for sending text-messages, sending pushover notifications, or similar. Instead the default alerting behaviour is to simply pipe any alert which is in the raised state into an external binary:
89
+
There is no built-in facility for sending notifications, instead the default alerting behaviour is to simply pipe any alert which is in the raised state into an external binary:
80
90
81
91
*`purppura-notify`
82
92
* Executed when an alert is raised, or re-raised.
83
93
* Will receive all the details of the alert as a JSON-object on STDIN
84
94
85
95
By moving the notification into an external process you gain the flexibility
86
-
to route alerts to humans in whichever way seems best to you. You can find sample notification-scripts which push to pushover beneath [notifiers/](notifiers/).
96
+
to route alerts to humans in whichever way seems best to you. You can find a sample notification-script [notifiers/](notifiers/) which alerts a human via pushover.
87
97
88
98
**NOTE**: Remember that you need to add this script somewhere upon your `PATH`.
0 commit comments