ffggrz / ext-respondd Goto Github PK
View Code? Open in Web Editor NEWrespondd status for servers
License: GNU Affero General Public License v3.0
respondd status for servers
License: GNU Affero General Public License v3.0
Could we please reduce deps as much as possible..
I'm not that familiar with Python, but why do you need python-cpuinfo? Isn't that data available in /proc?
per default respondd accept requests on any interfaces (like mesh0, wlan0, eth0, enp1s0, tun0, ...)
examples with problems:
ext-respondd/lib/respondd_client.py
Line 42 in 5bfa760
And compressed
Implement backward compatible solution for the deprecated -m
option of batctl
.
See also Batman-adv 2019.3 released
(Replacement for reverted 1fbbc2e)
On my Raspberry the ext-respondd currently aborts after startup and reports:
Apr 15 18:25:36 ffplieningrpb4olv6a systemd[1]: Started ext-respondd (respondd status for servers).
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: Traceback (most recent call last):
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: File "/opt/ext-respondd/ext-respondd.py", line 48, in <module>
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: extResponddClient.start()
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: File "/opt/ext-respondd/lib/respondd_client.py", line 60, in start
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: responseStruct[request] = self.buildStruct(request)
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: File "/opt/ext-respondd/lib/respondd_client.py", line 82, in buildStruct
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: return responseClass.getStruct()
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: File "/opt/ext-respondd/lib/respondd.py", line 31, in getStruct
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: ret = self._get()
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: File "/opt/ext-respondd/lib/nodeinfo.py", line 115, in _get
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: 'model': self.getCPUInfo()['model name'],
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: File "/opt/ext-respondd/lib/nodeinfo.py", line 74, in getCPUInfo
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: ret["model name"] = ret["Processor"]
Apr 15 18:26:30 ffplieningrpb4olv6a ext-respondd.py[1517]: KeyError: 'Processor'
Apr 15 18:26:30 ffplieningrpb4olv6a systemd[1]: ext-respondd.service: Main process exited, code=exited, status=1/FAILURE
Apr 15 18:26:30 ffplieningrpb4olv6a systemd[1]: ext-respondd.service: Failed with result 'exit-code'.
The syslog said something about KeyError: 'Processor' well in the /proc/cpuinfo it is also written in small letters: processor, so I made a small adjustment in the /opt/ext-respondd/lib/nodeinfo.py:
if 'model name' not in ret:
ret["model name"] = ret["processor"]
and the ext-respondd runs again.
Originally posted by @Django-BOfH in #9 (comment)
after startup the following error message appears:
# /opt/ext-respondd/ext-respondd.py
cant determine batctl version
Traceback (most recent call last):
File "/opt/ext-respondd/ext-respondd.py", line 48, in <module>
extResponddClient.start()
File "/opt/ext-respondd/lib/respondd_client.py", line 48, in start
self.joinMCAST(self._sock, self._config['addr'], lineMatch.group(1))
File "/opt/ext-respondd/lib/respondd_client.py", line 38, in joinMCAST
if_idx = socket.if_nametoindex(ifname)
OSError: no interface with this name
batctl returns the following version:
# batctl -v
batctl gentoo-2021.0 [batman-adv: 2021.0]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.