Skip to main content

alerk, if alert, reports on events.

Project description

alerk

alerk, if alert, reports on events.

Info

READ THIS SECTION FIRST

There are two entities:

  • alerk: This is the server to which the smalks broadcast.

  • smalk: This is clients/notifiers, which trigger to some event and send it to alerk.

Known smalks:

  • comming soon maybe=/

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 smalk will be able to report events to your alerk.

  • 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.

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.

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 file extra/smalk_base.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alerk-0.1.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alerk-0.1.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file alerk-0.1.1.tar.gz.

File metadata

  • Download URL: alerk-0.1.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for alerk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ceac02ab3cc47af08487d91df94c86216edf1ec4c4ff7243fb543fb6d8b8ed1b
MD5 62c443f7387c7767859cadc3d3530efa
BLAKE2b-256 c14c58d6d00a53356d469948449e35f56da8be634f4bb3fc03c2a8d66054bab4

See more details on using hashes here.

File details

Details for the file alerk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: alerk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for alerk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 777f958f2cfd94d31673c101d0f03500d5e54941defc3113ac2d092c244e0e67
MD5 835f224c0fd6276f59833ee4412f5520
BLAKE2b-256 76c477967b0f42bfefaaec4f49828f26c3f903b5e17c7bb5deec5542697a3276

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page