BadNews
is a Matrix bot, watching your systemd/journald
logs, and reporting bad news to you.
A mix of wanting to toy around with the matrix_sdk crate and getting some simple alerts from my hosted services.
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:
- name: nginx.service
filter: "\\[warn\\] .*"
Then run the bot:
cargo run -- --config config.yaml
I accept contributions via GitHub Pull Requests and GitLab Merge Requests.
You can also send patches to
~alarsyo/[email protected] with the
prefix PATCH bad-news
.
You can use the following commands to set up git
appropriately;
git config sendemail.to '~alarsyo/[email protected]'
git config format.subjectPrefix 'PATCH bad-news'