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!  /
 [EMAIL PROTECTED]                    `------------------------------'



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to