Raspberry Pi Diagnostics Gatherer
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:
- Sander Marechal (see: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/)
- Charles Menguy (see: http://stackoverflow.com/questions/10217067/implementing-a-full-python-unix-style-daemon-process)
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
andvmstat
) - daemon13 - Network interfaces (bytes in/out from
/proc/net/dev
) - daemon14 - Memory usage (from
/proc/meminfo
) - daemon15 - Size of logfiles (
kern.log
,messages
andsyslog
) - daemon16 - Various UPS variables (from
upsc
; requiresnut
) - 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