alerk, if alert, reports on events.
Project description
alerk
alerk, if alert, reports on events.
[!WARNING] This project has not been audited for security.
Info
READ THIS SECTION FIRST
There are two entities:
-
alerk: This is the server to which thesmalks broadcast. -
smalk: This is clients/notifiers, which trigger to some event and send it toalerk.
Known smalks:
- smalk_disk_check: disks and raids monitoring.
You can try to play with crypto module with using GUI: krypto_gui_smalk.
Current way to notify
Telegram.
Perhaps there will be other ways in the future.
Why alerk/smalk
-
Easy set up.
-
Cryptography (RSA4096) is in the box. Messages are transmitted through a secure tunnel.
-
There is a verification of the sender (signature). That is, only your
smalkwill be able to report events to youralerk. -
No need ssl.
-
You can easily write your own
smalk.
Installing
pip3 install alerk
Setting up
Create yaml setting file
Clone it from settings_template.yaml.
Set up telegram bot
You can get token from @BotFather (it is telegram bot).
Input this token to yaml setting file.
Run script from extra/warm_up_telebot.py. Do /start from needed telegram users and remember their telegram id.
Input this telegram id to yaml setting file. Kill python instance of extra/warm_up_telebot.py.
Set up keys
Generate keys of alerk:
alerk gen_keys
Put this keys to yaml setting file.
Do it for each smalk. Put their keys in their configuration files, as well as only their public keys in yaml setting file of alerk.
Set up other settings
Read all yaml setting file and change needed fields.
Run
alerk start /path/to/your/yaml/setting/file
Writing your own smalk
Examine the files: extra/smalk_base.py and extra/smalk_base_kommunicator.py.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alerk-0.1.2.tar.gz.
File metadata
- Download URL: alerk-0.1.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fca6514309d92a520f9ba7bb56bc5033fc96273a0a43a810f6d6799a1120e1a8
|
|
| MD5 |
9d3ab8ee572b84d14d30615d3f375f07
|
|
| BLAKE2b-256 |
3a8eaa5d65a4e88575a360b8f9ddbf2202db35c77979944595ea7ac30189426e
|
File details
Details for the file alerk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: alerk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b56625ea0f02c7ea3c062381b09890b84d2708dd9628be7449946a7be33e3d6
|
|
| MD5 |
28c29e189130f95674b1f0f554cbefd2
|
|
| BLAKE2b-256 |
e886f89d0d8335fc792205d3dbcf33177605b1e500be75b4047c8540bc4668af
|