mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
login alerts
This commit is contained in:
parent
3eb358d618
commit
0e177210f6
10 changed files with 85 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -13,8 +13,17 @@ DISCLAIMER: This repository does not have anything to do with the LEGO Group. "l
|
|||
* Copy `config.example.json` to `config.json`, edit as necessary
|
||||
* Run `alerting/login.py` once to login into Matrix
|
||||
|
||||
### Setting up login alerts
|
||||
|
||||
* Copy `lego-login-alert` to your `/etc/sudoers.d`
|
||||
* Add this to your `/etc/ssh/sshd_config`:
|
||||
```
|
||||
# login alerts
|
||||
ForceCommand /opt/lego-monitoring/wrappers/login_wrapper.sh
|
||||
```
|
||||
|
||||
## Running
|
||||
|
||||
* `prettyprint.py` -- check and print all sensors
|
||||
* `service.py` -- launch service
|
||||
* `lego-monitoring.service` is a systemd unit that starts `service.py`
|
||||
* `assets/lego-monitoring.service` is a systemd unit that starts `service.py`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue