From owner-freebsd-questions@FreeBSD.ORG Fri Apr 25 20:22:46 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 457091065676 for ; Fri, 25 Apr 2008 20:22:46 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av7-1-sn3.vrr.skanova.net (av7-1-sn3.vrr.skanova.net [81.228.9.181]) by mx1.freebsd.org (Postfix) with ESMTP id 008478FC1C for ; Fri, 25 Apr 2008 20:22:45 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av7-1-sn3.vrr.skanova.net (Postfix, from userid 502) id D048B380F4; Fri, 25 Apr 2008 22:16:25 +0200 (CEST) Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av7-1-sn3.vrr.skanova.net (Postfix) with ESMTP id BB0D5380B1; Fri, 25 Apr 2008 22:16:25 +0200 (CEST) Received: from [192.168.1.31] (90-230-141-139-no41.tbcn.telia.com [90.230.141.139]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id E9CB637E4A; Fri, 25 Apr 2008 22:22:43 +0200 (CEST) Message-ID: <48123D13.5030900@passagen.se> Date: Fri, 25 Apr 2008 22:20:35 +0200 From: Roger Olofsson User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Tobias Kirschstein References: <20080424181040.GB14991@nupfel.de> In-Reply-To: <20080424181040.GB14991@nupfel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions Subject: Re: simple network traffic query tool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2008 20:22:46 -0000 Tobias Kirschstein skrev: > hi, > > i'm looking for a small tool to query the current network traffic (kb > IN and OUT) per interface. is there any sysctl or tool which gives me a > similar output to "systat -ifstat": > > /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 > Load Average |||| > > Interface Traffic Peak Total > lo0 in 0.000 KB/s 0.000 KB/s 226.079 KB > out 0.000 KB/s 0.000 KB/s 226.079 KB > > wpi0 in 0.000 KB/s 0.000 KB/s 164.577 MB > out 0.000 KB/s 0.000 KB/s 6.205 MB > > the background: > unfortunately the network monitor build into superkaramba does not work > for freebsd, os i want to write a widget which uses sysctl or any other > tool if available got get this information. systat is not appropriate > to be used because it does not terminate on its own as i see. > > Hello, If you want something more of a web service you could install SNMP from ports and use Cacti (also from ports). See http://www.cacti.net/ for a quick glance at what you'll get. Just my nickels worth. /Roger