/monitoring

Some monitoring scripts which send their data over MQTT

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Monitoring Scripts

My monitoring scripts.

Each folder consists of a script which logs its data to a MQTT script you can find here. Whatever you do when the data is written to your MQTT broker is up to you, I store it in an InfluxDB and visualize it in Grafana.

Currently working scripts:

  • Logging of traffic (Linux and MacOs only)
  • Logging of RAM usage (Linux and MacOS only)
  • Logging of CPU usage (Linux and MacOS only)
  • Logging of eMail traffic over IMAP

Systemd timers

Some of the scripts should be run via a classical cronjob, some rather with a systemd timer. To set this up, copy the .service and .timer files to ~/.config/systemd/user, adjust the paths inside them and run systemctl enable --user --now UNIT.timer.