Giter VIP home page Giter VIP logo

freeradius_exporter's People

Contributors

jokjr avatar kakash1hatake avatar sebbrandt87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

freeradius_exporter's Issues

Problem with parsing dictionary.pyrad

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.

ImportError: cannot import name 'Enum'

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.

  • Ubuntu 18.04.3
  • Python3: 3.6.9
  • python3-prometheus-client is already the newest version (0.1.1-1)
  • python3-pyrad is already the newest version (2.0-3)

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'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.