system-status-server

This is a very lightweight stuff to get some system status info in JSON.


License
MIT
Install
pip install system-status-server==2.0.0

Documentation

About

This is a very lightweight stuff to get some system status info in JSON.

Available nodes:

  • Uptime
  • Load
  • CPU (number of cores)
  • Memory usage

Installation:

pip install system-status-server

Usage:

Help: system-status-server -h

Typical start: system-status-server start --port 4242

Optional config file /etc/system-status-server.json (the path is hard coded)

Example config:

{
    "listen": {
        "address" : "0.0.0.0",
        "port" : 35280
    }
}

Typical out:

{
    "load": [0.29, 0.33, 0.27],
    "uptime": 3403979,
    "cpu": {
        "cores": 8
    },
    "memory": {
        "available": 13979320320,
        "total": 16503238656,
        "percent": 15.3,
        "free": 2553470976,
        "used": 13949767680
    }
}