Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNMP-Support for OpenVPN instances #7441

Open
2 tasks done
cs-1 opened this issue May 6, 2024 · 2 comments
Open
2 tasks done

SNMP-Support for OpenVPN instances #7441

cs-1 opened this issue May 6, 2024 · 2 comments

Comments

@cs-1
Copy link
Contributor

cs-1 commented May 6, 2024

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

Right now there's no method to monitor OpenVPN instance usage (users, tx/rx volume etc.) via SNMP. This would be very helpful in bigger installations to manage resources.

Describe the solution you like

It would be great to either implement AgentX support for OpenVPN (there's a repo which implements this: https://github.com/Phhere/openvpn-snmp) or to integrate it as a UCD configuration into Net-SNMP. The latter would allow to simply parse an OpenVPN status file which can be enabled via the "status" directive in the OpenVPN configuration. Since this issue is more OpenVPN centric (enabling AgentX support or enabling the status file) I opened the issue here in the core repo.

Describe alternatives you considered

There're no better alternatives that I'm aware of.

Additional context

N/N

@fichtner
Copy link
Member

fichtner commented May 6, 2024

The code you reference was last updated 9 years ago. I don’t want to get any hopes up here. It neither looks fitting for core scope nor is there a maintainable way forward. Net-snmp has been superseded by an array of modern monitoring tools which all are actively maintained and might even offer openvpn support already.

@cs-1
Copy link
Contributor Author

cs-1 commented May 6, 2024

Hi Franco, yes, the repo is not maintained properly. Unfortunately I'm unaware of any other tools that expose users etc. from OpenVPN on OPNSense out of the box. The Prometheus node exporter plugin in OPNSense doesn't provide metrics for OpenVPN. Unfortunately, SNMP is still a common denominator for enterprise network management. Don't get me wrong, I'm not a big friend of SNMP.

I'll have a look whether I can use the status output of the unix socket management interface of openvpn to feed the info to Net-SNMP (or the Prom. node exporter).

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

No branches or pull requests

2 participants