systemd log monitor that publishes to an MQTT bus on specific events
Project description
Ochlero is a script that monitors the systemd journal for specific events that trigger publications on an MQTT queue.
“Ochlero” comes from “Ochlerotatus Triseriatus”, a species of tree hole breeding mosquitoes (https://en.wikipedia.org/wiki/Ochlerotatus_triseriatus), ie mosquitoes that like logs…
Running and testing
Ochlero is tested against and runs on python 2.7 and python 3.5.
With python 2.x you need to install the systemd and mqtt wrappers on your system. On CentOS or Fedora, you can do so with the following command (extra repositories such as EPEL might need to be activated):
:: sudo yum install systemd-python python-paho-mqtt
This is necessary due to a problem in the PyPI version of the systemd wrapper.
With python 3.5, running
:: pip install -r requirements.txt
should be enough.
To start ochlero, simply run
:: ochlero -c /path/to/config/file
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
File details
Details for the file ochlero-0.1.1.tar.gz
.
File metadata
- Download URL: ochlero-0.1.1.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b75ab83f140310188f6a242af7f3fb369d40cf2df1eaa59c118dc9213383298d |
|
MD5 | 67d32ee445663656292c82472ae32a07 |
|
BLAKE2b-256 | 83f3df455eae3ab50c19e09d0946fc05efed01983599f1cf5f635ba4a2e34551 |