Page 1 of 1

OpenVPN process monitoring

Posted: Wed Mar 09, 2011 7:32 am
by nash
I have a program that control the OpenVPn process. It create OpenVPN process by calling openvpn.exe, and monitoring if it's working.

It's work fine, except one problem. When it isn't able to start the process(such as can't bind port, or config file syntax error), My program doesn't know why it isn't. Is there anyway to get the error code or some message when OpenVPN isn't able to start the process, except using the redirection of stdout to my program ?

I've tried to get the exit code from openvpn.exe, but it determine nothing.

Regards

Re: OpenVPN process monitoring

Posted: Wed Mar 09, 2011 7:59 am
by janjust
read up on the openvpn management interface; this interface is explicitly meant to control openvpn, including startup, shutdown, viewing which clients are connected etc.