A Matrix bot, bringer of bad news
Find a file
Bruno BELANYI 54f67887aa config: add optional filter option for units
This allows the user to write:

```yaml
units:
- foo.service
- bar.service
- name: baz.service
  filter: "^Error: .*$"
```

So a unit can be provided as a string, or as a map which contains both
`name` and `filter`.
2021-04-10 02:05:01 +02:00
src config: add optional filter option for units 2021-04-10 02:05:01 +02:00
.gitignore Initial commit 2021-02-02 04:20:27 +01:00
.lohr remove empty line from .lohr file 2021-04-09 20:30:12 +02:00
Cargo.lock config: add optional filter option for units 2021-04-10 02:05:01 +02:00
Cargo.toml config: add optional filter option for units 2021-04-10 02:05:01 +02:00
README.org README: setup 2021-02-07 19:13:44 +01:00

BadNews: Matrix Bot, Bringer of Bad News

What is this?

BadNews is a Matrix bot, watching your systemd/journald logs, and reporting bad news to you.

Why?

A mix of wanting to toy around with the matrix_sdk crate and getting some simple alerts from my hosted services.

Setup

Write up a configuration file at config.yaml:

homeserver: "https://matrix.example.net"
username: "bad-news"
password: "matrix password for user bad-news"
state_dir: "state/"
room_id: "!DeaDbEef:example.net"
units:
  - nginx.service

Then run the bot:

cargo run -- --config config.yaml