Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Openvpn Access Server Status File #43

Open
derekleegh opened this issue Mar 15, 2021 · 10 comments
Open

Openvpn Access Server Status File #43

derekleegh opened this issue Mar 15, 2021 · 10 comments

Comments

@derekleegh
Copy link

Hi, can you guide which Openvpn access server logs are you accepting ?

I only have logs for /var/log/openvpnas.log

Is that log acceptable?

@chench00
Copy link

I have the same issue. No status file but only /var/log/openvpnas.log.

@derekleegh
Copy link
Author

@chench00 I think this only supports the openvpn community edition not the one with access server.

@chench00
Copy link

@guohaolee That's a bummer. Really wanted to use this.

@derekleegh
Copy link
Author

@chench00 gotta create your own :)

@chench00
Copy link

chench00 commented May 2, 2021

@guohaolee Are you also using OpenVPN AS?

@derekleegh
Copy link
Author

@chench00 yes the one from https://openvpn.net/access-server/
Using it on company

@lee-costa
Copy link

@guohaolee Care to share it?

@derekleegh
Copy link
Author

@junior466 nah I didn't have time to build the dashboard for now.

Might be a long time till I actually have time to build it :)

@jeffersonlmartins
Copy link

jeffersonlmartins commented Jun 16, 2021

Hi friend, how are you?

So, you need to configure the openvpn file (server.conf, for example) and add the parameter status-version and status. As mentioned below:

status-version 2

status openvpn-status.log

After editing, save the file and restart the openvpn process.

If you use the parameters in the same way as I mentioned before, the file will be saved in the same path as the editor file previously. This way, you just need to mention the full path to the export binary (/etc/openvpn/openvpn-status.log, for example).

openvpn_exporter -openvpn.status_paths /etc/openvpn/openvpn-status.log

After that, just have fun! 💯

@cmhrpr
Copy link

cmhrpr commented Jul 13, 2021

@jeffersonlmartins It doesn't look like this is supported by Access Server.

Access server has a as.conf file which is where the configuration goes, but uses an SQLlite/ external database to store the actual status and logs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants