From owner-freebsd-hackers Sun Oct 10 6:50:54 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (Postfix) with ESMTP id EB39715044 for ; Sun, 10 Oct 1999 06:50:52 -0700 (PDT) (envelope-from green@FreeBSD.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.9.3/8.8.7) with ESMTP id JAA84558; Sun, 10 Oct 1999 09:49:21 -0400 (EDT) X-Authentication-Warning: janus.syracuse.net: green owned process doing -bs Date: Sun, 10 Oct 1999 09:49:20 -0400 (EDT) From: "Brian F. Feldman" X-Sender: green@janus.syracuse.net To: Leif Neland Cc: freebsd-hackers@FreeBSD.org Subject: Re: mrtg, user-ppp In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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