项目作者: Idorobots

项目描述 :
A basic health monitoring server (not only) for Raspberry Pi
高级语言: Python
项目地址: git://github.com/Idorobots/healthpi.git
创建时间: 2015-02-15T15:17:46Z
项目社区:https://github.com/Idorobots/healthpi

开源协议:

下载


Basic (not only) Rasberry Pi 2 health monitoring server.

  1. $ src/health.py --port PORT &
  2. $ src/check.py http://localhost:PORT

Or run it as a Unix daemon:

  1. $ src/health.py --port PORT --daemon start
  2. $ src/check.py http://localhost:PORT

Or run it through systemd:

  1. [Unit]
  2. Description=Health monitoring service for the Raspberry Pi.
  3. After=syslog.target network.target
  4. [Service]
  5. Type=forking
  6. ExecStart=/path/to/healthpi/src/health.py --port=PORT --daemon restart
  7. PIDFile=/tmp/health-daemon.pid
  8. TimeoutSec=10
  9. [Install]
  10. WantedBy=multi-user.target

Start it using SSL:

  1. $ src/health.py --ssl-cert certfile.pem --port PORT --daemon start
  2. $ src/check.py https://localhost:PORT

Use Basic Authorization:

  1. $ src/health.py --auth USER:PASSWORD --port PORT --daemon start
  2. $ src/check.py --auth USER:PASSWORD https://localhost:PORT