openvpn-status icon indicating copy to clipboard operation
openvpn-status copied to clipboard

RFE: real-time checking against a management socket

Open gcoxmoz opened this issue 6 years ago • 1 comments

The logfile regenerates on a time delay (looks to be 'once a minute'?). Would it be feasible to have a code path that let you specify the management socket instead of a logfile, and pull the real-time status?

(there's a lurking second-question RFE here of "and if you can do that, you'll be most of the way towards allowing me to issue socket commands like 'kill SOMEUSER', so can I get that too?") But I'll settle for this issue being scoped as 'real time status'.

Thanks!

gcoxmoz avatar Aug 29 '18 18:08 gcoxmoz

If you get the management socket working and can read it you could do something like this:

temp = io.StringIO(statusoutputstring)
status = parse_status(temp.getvalue())

statusoutputstring is a string. This is how I'm doing it.

TomDeBacker avatar Oct 25 '18 11:10 TomDeBacker