No Description

Marcus 90d38d6979 replace cpuinfo-module 8 years ago
.gitignore c6a0ec8120 initial commit 8 years ago
LICENSE 84ed0af3f3 update README and add LICENSE 8 years ago
README.md 90d38d6979 replace cpuinfo-module 8 years ago
alias.json.example 1b5f087ad1 add example files 8 years ago
config.json.example 64f6cd0816 cleanup code; add wifi-mesh; fix bugs 8 years ago
ext-respondd.py 90d38d6979 replace cpuinfo-module 8 years ago
ext-respondd.service.example 1b5f087ad1 add example files 8 years ago

README.md

respondd Status for Servers

A gluon compatible status script for respondd in python.

Dependencies

  • lsb_release
  • ethtool
  • python3.3
  • python3-netifaces
  • batman-adv

Setup

config.json

Startparameter for ext-respondd.
Copy config.json.example to config.json and change it to match your server configuration.
(cp config.json.example config.json)

  • batman (string) (Needed: typical bat0)
  • fastd (string) (Needed: typical mesh-vpn)
  • bridge (string) (Needed: typical br-client)
  • mesh-wlan (string) (Optional: Ad-Hoc batman-Mesh)
  • wan (string) (Needed: for primary MAC-Address and node-id)
  • fastd_socket (string) (Optional: needed for uplink-flag)

alias.json

Aliases to overwrite the returned server data.
Copy alias.json.example to alias.json and input e.g. owner information.
(cp alias.json.example alias.json)

The JSON content matches one block of the nodes.json, which is outputted by e.g. the HopGlass-Server.

ext-respondd.service

Register ext-respondd as a systemd service

cp ext-respondd.service.example /lib/systemd/system/ext-respondd.service
! modify the path inside of the ext-respondd.service !
systemctl enable ext-respondd
systemctl start ext-respondd

Notes

Add this to your aliases.json in your HopGlass-Server if this a gateway.

  "gw2": {
    "nodeinfo": {
      "hostname": "Gateway 2",
      "node_id": "gw2"
    },
    "flags": {
      "gateway": true
    }
  }