semaphor-dk / freeradius_exporter Goto Github PK
View Code? Open in Web Editor NEWPrometheus exporter for FreeRADIUS statistics from individual clients
License: MIT License
Prometheus exporter for FreeRADIUS statistics from individual clients
License: MIT License
Hello
I've downloaded the project on my server and tryed to start the process and got an error:
dict=Dictionary('/usr/local/share/freeradius_exporter/dictionary.freeradius.pyrad'))
File "/usr/local/lib/python3.4/dist-packages/pyrad/dictionary.py", line 164, in __init__
self.ReadDictionary(dict)
File "/usr/local/lib/python3.4/dist-packages/pyrad/dictionary.py", line 386, in ReadDictionary
self.__ParseAttribute(state, tokens)
File "/usr/local/lib/python3.4/dist-packages/pyrad/dictionary.py", line 269, in __ParseAttribute
state['tlvs'][parent_code].sub_attributes[code] = attribute
KeyError: 186
Comments say that there is a problem with parsing tlv, but they are already commented out.
I resolved the problem totally removing all 186.* attributes, but it is a bit weird, imho.
My os is debian 8 jessie and python version 3.4.2
Also I had to patch things about f-strings and hex conversion, but it is out of scope of this issue.
I followed your instructions in README but still getting this error. Do you have any idea why?
I always use pip so I have no experience with setuptools.
Oct 28 09:56:33 freeradius_exporter.py[1299465]: ImportError: cannot import name 'Enum'
Oct 28 09:56:33 systemd[1]: freeradius_exporter.service: Main process exited, code=exited, status=1/FAILURE
Oct 28 09:56:33 systemd[1]: freeradius_exporter.service: Failed with result 'exit-code'.
Oct 28 09:56:43 systemd[1]: freeradius_exporter.service: Service hold-off time over, scheduling restart.
Oct 28 09:56:43 systemd[1]: freeradius_exporter.service: Scheduled restart job, restart counter is at 105.
Oct 28 09:56:43 systemd[1]: Stopped Prometheus exporter for data from FreeRADIUS.
Oct 28 09:56:43 systemd[1]: Started Prometheus exporter for data from FreeRADIUS.
Oct 28 09:56:44 freeradius_exporter.py[1299496]: Traceback (most recent call last):
Oct 28 09:56:44 freeradius_exporter.py[1299496]: File "/usr/local/bin/freeradius_exporter.py", line 4, in
Oct 28 09:56:44 freeradius_exporter.py[1299496]: import('pkg_resources').run_script('freeradius-exporter==1.1', 'freeradius_exporter.py')
Oct 28 09:56:44 freeradius_exporter.py[1299496]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 658, in run_script
Oct 28 09:56:44 freeradius_exporter.py[1299496]: self.require(requires)[0].run_script(script_name, ns)
Oct 28 09:56:44 freeradius_exporter.py[1299496]: File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 1445, in run_script
Oct 28 09:56:44 freeradius_exporter.py[1299496]: exec(script_code, namespace, namespace)
Oct 28 09:56:44 freeradius_exporter.py[1299496]: File "/usr/local/lib/python3.6/dist-packages/freeradius_exporter-1.1-py3.6.egg/EGG-INFO/scripts/freeradius_exporter.py", line 4, in
Oct 28 09:56:44 freeradius_exporter.py[1299496]: import('pkg_resources').run_script('freeradius-exporter==1.1', 'freeradius_exporter.py')
Oct 28 09:56:44 freeradius_exporter.py[1299496]: ImportError: cannot import name 'Enum'
Oct 28 09:56:44 systemd[1]: freeradius_exporter.service: Main process exited, code=exited, status=1/FAILURE
Oct 28 09:56:44 systemd[1]: freeradius_exporter.service: Failed with result 'exit-code'.
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.