A basic health monitoring server (not only) for Raspberry Pi
Basic (not only) Rasberry Pi 2 health monitoring server.
$ src/health.py --port PORT &
$ src/check.py http://localhost:PORT
Or run it as a Unix daemon:
$ src/health.py --port PORT --daemon start
$ src/check.py http://localhost:PORT
Or run it through systemd:
[Unit]
Description=Health monitoring service for the Raspberry Pi.
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/path/to/healthpi/src/health.py --port=PORT --daemon restart
PIDFile=/tmp/health-daemon.pid
TimeoutSec=10
[Install]
WantedBy=multi-user.target
Start it using SSL:
$ src/health.py --ssl-cert certfile.pem --port PORT --daemon start
$ src/check.py https://localhost:PORT
Use Basic Authorization:
$ src/health.py --auth USER:PASSWORD --port PORT --daemon start
$ src/check.py --auth USER:PASSWORD https://localhost:PORT