Skip to main content

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


Download files

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

Source Distribution

ochlero-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

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

Hashes for ochlero-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b75ab83f140310188f6a242af7f3fb369d40cf2df1eaa59c118dc9213383298d
MD5 67d32ee445663656292c82472ae32a07
BLAKE2b-256 83f3df455eae3ab50c19e09d0946fc05efed01983599f1cf5f635ba4a2e34551

See more details on using hashes here.

Supported by

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