Message-ID: <4BA1FE79.1080209@...1294...> Date: Thu, 18 Mar 2010 11:20:41 +0100 From: Eike Lohmann MIME-Version: 1.0 References: <1268855205316802500@...1315...> <201003172238.23604.dave_br@...1278...> In-Reply-To: <201003172238.23604.dave_br@...1278...> Subject: Re: [Openvpn-devel] Bytecount Reporting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: openvpn-devel@lists.sourceforge.net Or you can user the radiusplugin from Ralf (http://www.nongnu.org/radiusplugin/) use a radius server and set an accounting interval. Regards, Eike Am 17.03.2010 23:38, schrieb Davide Brini: > On Wednesday 17 March 2010, openvpn@...1315... wrote: > > >> I am trying to write an application that monitors traffic over an OpenVPN >> link - by using bytecount information from the management interface. >> However, after I telnet in, and enter "bytecount 1" (for 1 second >> updates), I find that the real-time bytecount updates are not really every >> second. They seem to be initially, but soon slow down (to an update every >> 5-10 seconds). >> > Sorry for avoiding a direct answer to the question (David has already > addressed that quite well), but I just wanted to tell you that you can get > byte counts from OpenVPN's status file, ie the one you specify with "-- > status". I used that in the past to monitor clients and traffic (it was > actually a Munin plugin that read the file and collected the data). > That said, it might not suit your requirements, but I thought I mentioned that > just in case. > >