Code Monkey home page Code Monkey logo

Comments (5)

furlongm avatar furlongm commented on July 17, 2024

Which version of openvpn are you using?

Can you run openvpn-monitor.py on the command line with the debug option?

from openvpn-monitor.

guossf avatar guossf commented on July 17, 2024

used OpenVPN 2.0.9 .

(openvpn-monitor) sh-4.2# python3 openvpn-monitor.py -d
WARNING: Config file does not exist or is unreadable: ./openvpn-monitor.conf
WARNING: Config file does not exist or is unreadable: /srv/openvpn-monitor/etc/openvpn-monitor.conf
INFO: Using default settings => localhost:5555
WARNING: No compatible geoip1 or geoip2 data/libraries found.
INFO: Sending command: version

DEBUG:
=== begin raw data
OpenVPN Version: OpenVPN 2.0.9 x86_64-unknown-linux [SSL] [LZO] [EPOLL] built on Feb 11 2022
Management Version: 1
END

=== end raw data
INFO: Sending command: state

DEBUG:
=== begin raw data
1645007299,CONNECTED,SUCCESS,10.8.0.1
END

=== end raw data
DEBUG:
=== begin split line
['1645007299', 'CONNECTED', 'SUCCESS', '10.8.0.1']
=== end split line
Traceback (most recent call last):
File "openvpn-monitor.py", line 887, in
main()
File "openvpn-monitor.py", line 865, in main
monitor = OpenvpnMgmtInterface(cfg, **kwargs)
File "openvpn-monitor.py", line 214, in init
self.collect_data(vpn)
File "openvpn-monitor.py", line 222, in collect_data
vpn['state'] = self.parse_state(state)
File "openvpn-monitor.py", line 324, in parse_state
if parts[4]:
IndexError: list index out of range

from openvpn-monitor.

guossf avatar guossf commented on July 17, 2024

from openvpn-monitor.

furlongm avatar furlongm commented on July 17, 2024

Looks like 2.0.9 was released in 2013. Could you try a newer version of openvpn?

from openvpn-monitor.

guossf avatar guossf commented on July 17, 2024

OpenVPN 2.4.8 version is normal.

from openvpn-monitor.

Related Issues (20)

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.