Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.
/ raspdiagd Public archive

[UNMAINTAINED] Raspberry Pi Diagnostics Gatherer

License

Notifications You must be signed in to change notification settings

Mausy5043/raspdiagd

Repository files navigation

raspdiagd

Raspberry Pi Diagnostics Gatherer

UNMAINTAINED

This repository is superseded by the lnxdiagd repository

This repository provides a number of python-based daemons that gather various system diagnostics. Although specifically targeted at Raspberry Pi flavours of Debian, most will probably work (with minor modifications) on any Debian-based Linux distro. The result of each deamon is a file containing comma-separated-values created in /tmp/raspdiagd/

The code used to daemonise python code was borrowed from previous work by:

and modified for my particular use-case. This includes a bash-script that keeps the daemons running.

NO code is provided for further processing of the data. E.g. adding the data to a rrdtool-database and/or graphing the data. This functionality is offered elsewhere.

Following daemons are provided:

  • daemon11 - CPU temperature in degC (Raspberry Pi hardware required)
  • daemon12 - CPU load (from /proc/loadavg and vmstat)
  • daemon13 - Network interfaces (bytes in/out from /proc/net/dev)
  • daemon14 - Memory usage (from /proc/meminfo)
  • daemon15 - Size of logfiles (kern.log, messages and syslog)
  • daemon16 - Various UPS variables (from upsc; requires nut)
  • daemon17 - Various variables from the Kamstrup smart electricity meter
  • daemon18 - reads data from an Arduino running the cmdMULTIsens sketch from https://github.com/Mausy5043/arduino.git
  • daemon99 - Data uploading to the server