From owner-freebsd-questions@FreeBSD.ORG Tue May 18 16:13:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A6DC16A6A7 for ; Tue, 18 May 2004 16:12:28 -0700 (PDT) Received: from www.gotbrains.org (www2.gotbrains.org [206.180.149.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F3D943E56 for ; Tue, 18 May 2004 14:47:48 -0700 (PDT) (envelope-from cravey@gotbrains.org) Received: from igor.gotbrains.org (cs66256-237.houston.rr.com [66.25.6.237]) by www.gotbrains.org (Postfix) with SMTP id D4FC0213F; Tue, 18 May 2004 16:20:39 -0500 (CDT) Date: Tue, 18 May 2004 16:20:39 -0500 From: "Stephen P. Cravey" To: Matthew Seaman Message-Id: <20040518162039.13f46501.cravey@gotbrains.org> In-Reply-To: <20040518123643.GB46147@happy-idiot-talk.infracaninophile.co.uk> References: <20040517183242.192ead9f.clists@gotbrains.org> <20040518123643.GB46147@happy-idiot-talk.infracaninophile.co.uk> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: remote monitoring system variables? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 May 2004 23:13:10 -0000 I was afraid of that. I'll look more closely into the SNMP MIBS to see how much of what I need is available. The Issue I have with scripting SNMP is that the OID numbers for custom scrips seem to be dependant on how many scripts you are running. I'll verify that, but it looks like I may be writing some code to handle encrypted (or at least obfuscated) transmission of sysctl and ipfw data over an authenticated network connection. Thanks for the pointers. -Stephen On Tue, 18 May 2004 13:36:43 +0100 Matthew Seaman wrote: > On Mon, May 17, 2004 at 06:32:42PM -0500, Stephen P. Cravey wrote: > > I'm tryign to locate a pre-existing method of monitoring FreeBSD > > systems. Specifically, I'd like a way to monitor sysctl variables, > > IPFW/PF counters, cpu and ram utilization(in that order). I can > > write my own interface, however I'd hate to have to reinvent the > > wheel if there's already something out there. Not to mention the > > difficulty in figuring out how to build an interface into the ipfw > > counters. Thanks. > > Most of that can by obtained via snmp -- the net-mgmt/net-snmp port > would be a good place to start. You can get the system load and > memory usage and the number of bytes transmitted via each interface > straight out of SNMP, but for things like sysctl(8) output or IPFW > counters, youl'd have to get the SNMP daemon to run an external script > and return the results. You can probably figure out how to do that by > reading the documentation supplied with net-snmp and by playing with > the configuration file generator snmpconf(1). > > Once you've got SNMP capability available on your server, virtually > all network monitoring software, including a bunch of large-scale > commercial monitoring programs, will be able to process and display > the results. If your budget doesn't run that far, then there's plenty > of applications in ports that will do a similar job. Particularly > recommended is net-mgmt/mrtg in combination with net/rrdtool -- very > good for graphing the state of such things over time. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > PGP: http://www.infracaninophile.co.uk/pgpkey Marlow > Tel: +44 1628 476614 Bucks., SL7 1TH > UK >