Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 1999 09:49:20 -0400 (EDT)
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        Leif Neland <leifn@neland.dk>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   Re: mrtg, user-ppp
Message-ID:  <Pine.BSF.4.10.9910100946540.84419-100000@janus.syracuse.net>
In-Reply-To: <Pine.BSF.4.05.9910101223420.48818-100000@arnold.neland.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 10 Oct 1999, Leif Neland wrote:

> I'd like to plot uptime and number of calls from ppp to mrtg.
> 
> Any 'easy' way to ask ppp for these values, getting the answer for number
> of seconds online since last asked?
> 

Store the time from the previous call after each call, as with a
(non-thread-safe) "static" variable in C.  You can accomplish reading the
time up pretty reasonably using either pppctl or just working directly
with the ppp socket in the program.

> Leif
> 

-- 
 Brian Fundakowski Feldman           \  FreeBSD: The Power to Serve!  /
 green@FreeBSD.org                    `------------------------------'



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9910100946540.84419-100000>