OpenVPN process monitoring

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
nash
OpenVpn Newbie
Posts: 8
Joined: Sat Feb 26, 2011 4:06 am

OpenVPN process monitoring

Post by nash » Wed Mar 09, 2011 7:32 am

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

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: OpenVPN process monitoring

Post by janjust » Wed Mar 09, 2011 7:59 am

read up on the openvpn management interface; this interface is explicitly meant to control openvpn, including startup, shutdown, viewing which clients are connected etc.

Post Reply