From owner-freebsd-performance@FreeBSD.ORG Sun Sep 14 09:18:38 2008 Return-Path: Delivered-To: performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCCB61065672 for ; Sun, 14 Sep 2008 09:18:38 +0000 (UTC) (envelope-from bscott@bunyatech.com.au) Received: from cope.tawonga.bunyatech.com.au (unknown [IPv6:2002:ca3f:3947::]) by mx1.freebsd.org (Postfix) with ESMTP id 94F6D8FC19 for ; Sun, 14 Sep 2008 09:18:37 +0000 (UTC) (envelope-from bscott@bunyatech.com.au) Received: from fainter.tawonga.bunyatech.com.au (fainter-e.tawonga.bunyatech.com.au [10.0.1.184]) by cope.tawonga.bunyatech.com.au (8.14.2/8.14.2) with ESMTP id m8E9H46M093968; Sun, 14 Sep 2008 19:17:06 +1000 (EST) (envelope-from bscott@bunyatech.com.au) Message-ID: <48CCD68B.8050408@bunyatech.com.au> Date: Sun, 14 Sep 2008 19:16:59 +1000 From: Brian Scott User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: David Wolfskill References: <20080912234822.GK11991@bunrab.catwhisker.org> In-Reply-To: <20080912234822.GK11991@bunrab.catwhisker.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: performance@freebsd.org Subject: Re: Using sysctl(1) to gather resource consumption data X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 09:18:38 -0000 David Wolfskill wrote: > At $work, I've been trying to gather information on "interesting > patterns" of resource consumption during moderately long-running (5 - 8 > hour) tasks; the hosts in question usually run FreeBSD 6.2, though > there's an occasional 6.x that's more recent, as well as a bit of > 7-STABLE. > > I wanted to have a low impact on the system being measured (of course), > and I was unwilling to require that a system to be measured had any > software installed on it other than base FreeBSD. (Yes, that means I > didn't assume Perl, though in practice in this environment, each does.) > > I also wanted the data to be transferred reasonably securely, even if > part of that transit was over facilities over which I had no control. > (Some of the machines being measured happen to be in a continent other > than where I am.) > > So I cobbled up a Perl script to run on a data-gathering machine (that > one was mine, so I could require that it had any software I wanted on > it); it acts (if you will) as a "shepherd," watching over child > processes, one of which is created for each host to be measured. > > A given child process copies over a shell script to the remote machine, > then redirects STDOUT to append to a file on the data-gathering machine, > and exec()s ssh(1), telling it to run the shell script on the remote > machine. > > The shell script fabricates a string (depending on the arguments with > which it was invoked), then sits in a loop: > > * eval the string > * sleep for the amount of time remaining > > indefinitely. (In practice, the usual nominal time between successive > eval()s is 5 minutes. I have recently been doing some experiments at a > 10-second interval.) > > Periodically, back on the data-gathering machine, a couple of different > things happen: > > * The "shepherd" script wakes up and checks the mtime on the file for > each per-host process (to see if it's been updated "sufficiently > recently"). Acttually, it first checks the file that lists the hosts > to watch; if its mtime has changed, it's re-read, and the list of > hosts is modified as appropriate. Anyway, if a given per-host file is > "too old," the corresponding child process is killed. The the > script runs through the list of hosts that should be checked, > creating a per-host process for each one for which that's necessary. > > There's a fair amount of detail I'm eliding (such as limited > exponential backoff for unresponsive hosts). > > In practice, this runs every 2 minutes at the moment. > > * There's a cron(8)-initiated make(1) process that runs, reading the > files created by the per-host processes and writing to a corresponding > RRD. (I cobbled up a Perl script to do this.) > > While I tried to externalize a fair amount of this -- e.g., the list of > sysctl(1) OIDs to use is read from an external file -- it turns out that > certain types of change are a bit ... painful. In particular, adding a > new "data source" to the RRD qualifies (as "painful"). > > I recently modified the scripts involved to allow them to also be used > to gather per-NIC statistics (via invocation of "netstat -nibf inet"). > > I'm about to implement that change over the weekend, so it occurred to > me that this might be a good time to add some more sysctl(1) OIDs. > > So I'm asking for suggestions -- ideally, for OIDs that are fairly > easily parseable. (I started being limited to only OIDs that were > presented as a single numeric value per line, then figured out how to > handle kern.cp_time (which is an ordered quintuple); later I figured out > how to cope with vm.loadavg (which is an order triplet ... surrounded by > curly braces). I don't currently have logic to cope with anything more > complicated than those.) > > Here's a list of the OIDs I'm currently using: > -------- Snip --------- > > > I admit that I don't know what several of those actually mean: I figured > I'd capture what I can, then try to make sense of it. It's very easy to > ignore data that I've captured, but don't need; it's a little harder to take > appropriate corrective action if I determine that there was some > information I should have captured, but didn't. :-} > > Still, if something's in there that's just silly, I wouldn't mind knowing > about it. :-) > > Thanks! > > Peace, > david You may be interested in some software that I've written over the last 5 years or so called FreePDB. Its written in Perl and has a requirement for an XML library to be installed. This sort of breaks your first requirement but I'll describe it anyway. I schedule a program to run regularly with cron. The program reads some configuration data from an XML file telling it what needs to be collected (and what mechanisms to use to collect it) and issues the necessary commands (sysctl is definitely one of the possibilities) and spits out rows into one or more text files. In your case, I expect you would transfer the text files over to a central system (the logger just creates a new file if someone steals the old one), where another program loads the text files into database tables. Graphing support includes the possibility to extract data into an rrd file, as well as driving gnuplot or some Perl GD::Graph stuff, or even hooking up Excel with ODBC from a Windows box and using the graph wizard. Anyway, I just thought I'd mention it since it might save you some work. It can be found at freepdb.sourceforge.net. It definitely runs on FreeBSD (I recently upgraded a 4.7 machine but before that it ran there quite nicely) including 7.0. I'm just cleaning up a new release that includes choice of database systems and a few performance/usability improvements. As they say in the classics, "If you don't see what you need, just ask". Regards, Brian From owner-freebsd-performance@FreeBSD.ORG Sun Sep 14 11:44:12 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B69141065674 for ; Sun, 14 Sep 2008 11:44:12 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9518FC1E for ; Sun, 14 Sep 2008 11:44:12 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2155780rvf.43 for ; Sun, 14 Sep 2008 04:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:face:mime-version :content-type:content-transfer-encoding; bh=udEXGiTRR+0bBJmGZONFg7e+s3CmBTntdbVjVmWaXPY=; b=cbZKCpCG1bYoh4feIZe27+YdStQE1f9Ue1kPSrtpXzXCDgSGYVGwCyDeFuPHNL2l+2 eRtGwmPFhyCVdKxtp4Ey5vyreS1cc4gRPQY5kS2pS1tOWJGMB9sw3akjMSoW9InPqF3W 5/9Jy4EPxfP6HD1t+Zu+DFM7TKnjpIuC5yqj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :face:mime-version:content-type:content-transfer-encoding; b=ECaYDr6h4tK2wGLlUAzBHnjUEYW5WpMublBnUkXWdX5Uzrs063nY7aQlvg00E23+V2 F1I2Lpr06jNgDDi/99CwhjTvsDvJddYi18+Aj1VneU1npZ8jmnFQewCLc3l2X9G9OsHB cMU4/rHcIPmGcE9xr8whkYQ85QMCjXYldjoww= Received: by 10.141.152.8 with SMTP id e8mr3977551rvo.19.1221390701607; Sun, 14 Sep 2008 04:11:41 -0700 (PDT) Received: from ayiin ( [124.170.218.78]) by mx.google.com with ESMTPS id f21sm19956459rvb.5.2008.09.14.04.11.39 (version=SSLv3 cipher=RC4-MD5); Sun, 14 Sep 2008 04:11:40 -0700 (PDT) Date: Sun, 14 Sep 2008 21:11:36 +1000 From: Norberto Meijome To: freebsd-performance@freebsd.org Message-ID: <20080914211136.1be3550d@ayiin> In-Reply-To: <20080912234822.GK11991@bunrab.catwhisker.org> References: <20080912234822.GK11991@bunrab.catwhisker.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Using sysctl(1) to gather resource consumption data X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 11:44:12 -0000 On Fri, 12 Sep 2008 16:48:22 -0700 David Wolfskill wrote: > I wanted to have a low impact on the system being measured (of course), > and I was unwilling to require that a system to be measured had any > software installed on it other than base FreeBSD. (Yes, that means I > didn't assume Perl, though in practice in this environment, each does.) Out of curiosity, how does bsnmpd compare to your approach with regards to impact on the system. It is part of 7.0 , not sure about previous versions, and it is definitely a more standard and cross platform approach , with support @ NOC / alerting side of things. (for what is worth, i've only used net-snmpd , not bsnmpd )... B _________________________ {Beto|Norberto|Numard} Meijome "Whenever you find that you are on the side of the majority, it is time to reform." Mark Twain I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. From owner-freebsd-performance@FreeBSD.ORG Sun Sep 14 12:45:15 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7811065679 for ; Sun, 14 Sep 2008 12:45:15 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 9DC008FC17 for ; Sun, 14 Sep 2008 12:45:09 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id m8EC7n6F052498; Sun, 14 Sep 2008 05:07:49 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id m8EC7nNK052497; Sun, 14 Sep 2008 05:07:49 -0700 (PDT) (envelope-from david) Date: Sun, 14 Sep 2008 05:07:49 -0700 From: David Wolfskill To: Norberto Meijome Message-ID: <20080914120749.GN11991@bunrab.catwhisker.org> References: <20080912234822.GK11991@bunrab.catwhisker.org> <20080914211136.1be3550d@ayiin> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Gx528pKVMenWl2Sw" Content-Disposition: inline In-Reply-To: <20080914211136.1be3550d@ayiin> User-Agent: Mutt/1.4.2.1i Cc: freebsd-performance@freebsd.org Subject: Re: Using sysctl(1) to gather resource consumption data X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 12:45:15 -0000 --Gx528pKVMenWl2Sw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 14, 2008 at 09:11:36PM +1000, Norberto Meijome wrote: > ... > Out of curiosity, how does bsnmpd compare to your approach with regards to > impact on the system. It is part of 7.0 , not sure about previous version= s, and > it is definitely a more standard and cross platform approach , with suppo= rt @ > NOC / alerting side of things.=20 >=20 > (for what is worth, i've only used net-snmpd , not bsnmpd )... Understood. As I understand it, an SNMP daemon (whether bsnmpd or net-snmpd) would require some configuration on the remote host, and I wasn't willing to require that. Also, the only times I have used SNMP, it has been using a version that did not support encryption in any form (as for as I know), and since some of the transit was over facilities we don't control, I thought it would be a bit more sensible to use SSH for the transport. There is a moderate amount of work in setting up the SSH connection in the first place: the first version of my script actually had the "shepherd" script establish a new SSH connection to each remote host every 5 minutes; examing a ktrace of that convinced me that SSH session creation was not something I wanted to do on a frequent basis for a mechanism that was intended to be low impact. But keeping that SSH session around and "squirting" a little over 800 bytes of payload down the pipe every 5 minutes -- or even every 10 seconds -- shouldn't be too much impact. (As a colleague pointed out, that's probably less impact than running top(1) has.) Granted, this isn't intended for the one "shepherd" script to deal with thousands of remote hosts -- but I believe that "hundreds" is feasible. Mind, I'm not especially keen on re-inventing stuff that already works (or can be reasonably persuaded to work). But in this case, running an SNMP daemon seemed to fail to meet my (admittedly, somewhat self- imposed) requirements. Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --Gx528pKVMenWl2Sw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkjM/pMACgkQmprOCmdXAD2NiQCeLVa6vWb1gwpqDs69onZ2ZT5N Yt8AnjcaG7vcX9OtHUjSQcprxnl6W/nG =0ZIF -----END PGP SIGNATURE----- --Gx528pKVMenWl2Sw-- From owner-freebsd-performance@FreeBSD.ORG Sun Sep 14 19:08:49 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14E981065687 for ; Sun, 14 Sep 2008 19:08:49 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id CFB1D8FC08 for ; Sun, 14 Sep 2008 19:08:48 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1696900wfg.7 for ; Sun, 14 Sep 2008 12:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=9tbXpjhnHQTenMORJw48g8bpqdaD0zpsLMyMU992s1s=; b=ukbkn3BBmPKaQ7H+OKj410s/av9UZNqNnFo2Vm5pD0YEMnSVWUWki55ryHQ66B/z5R AVm6rfAh/Vu9R0nT8rOSukL+pAkVQXAF5iIAnpch6kX/MZMf/uT+6fdei1cOmd3rmBaR qq6Tfjh8XFkPAxFfDl+6VpYiuBTq2DZzTErZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=iDFb8gPUXE7WTeYN/8IXWp8YQhqIqJgXFsEr8sgwSCsdkADqX+EIvfPcaEuu3BUv6P DLZrVlTE573QMLUoP7dVyD+zooZ9PiYpOuaC/bwAY/0NSLobJRka2C9Kg/6wCRo3mE/U X+oav51zRWjrFbp70S/gpXkCiUW6e3on6Wpj4= Received: by 10.141.206.13 with SMTP id i13mr4186186rvq.211.1221418046845; Sun, 14 Sep 2008 11:47:26 -0700 (PDT) Received: by 10.140.174.21 with HTTP; Sun, 14 Sep 2008 11:47:26 -0700 (PDT) Message-ID: <27dbfc8c0809141147i5404c1dbp3064c94e8b9d7636@mail.gmail.com> Date: Sun, 14 Sep 2008 20:47:26 +0200 From: "Valerio Daelli" To: "David Wolfskill" , "freebsd-performance@freebsd.org" In-Reply-To: <20080914120749.GN11991@bunrab.catwhisker.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080912234822.GK11991@bunrab.catwhisker.org> <20080914211136.1be3550d@ayiin> <20080914120749.GN11991@bunrab.catwhisker.org> Cc: Norberto Meijome Subject: Re: Using sysctl(1) to gather resource consumption data X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 19:08:49 -0000 On Sun, Sep 14, 2008 at 2:07 PM, David Wolfskill wrote: > On Sun, Sep 14, 2008 at 09:11:36PM +1000, Norberto Meijome wrote: >> ... Hi I was thinking about extending net-snmp to gather some resource consumption data, (read-only MIBS). I'l post a PR as soon as I have a working patch. Valerio From owner-freebsd-performance@FreeBSD.ORG Wed Sep 17 14:39:34 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4272E106566C for ; Wed, 17 Sep 2008 14:39:34 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id 04E768FC16 for ; Wed, 17 Sep 2008 14:39:33 +0000 (UTC) (envelope-from numardbsd@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so3088217wfg.7 for ; Wed, 17 Sep 2008 07:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:face:mime-version :content-type:content-transfer-encoding; bh=hOagXOr06YcEN4GPk1eGzyeXg1Ognyty+U0nNgiB16A=; b=BULOVmKP1gXzUgU1mP2NXrMzXNX1i3UkjoZ0AwqnAngFji61ecQzcmD1Bnmy+zm2ue WtJtJfWqH33DF7JwgzvQvAmKarWLp9h5bPCWfFAOQOmYu0lhZW95L+6bHvadPcP0ecXr DwJrqE9jW4YwJ71i0+cjOQ4RLYnI8aBCztezc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :face:mime-version:content-type:content-transfer-encoding; b=HlDl04eTsewQHyt5z9t/Yg/O4eyfxiaftTBeXnjYcCOHC6QJlu6e2XFPmTeGkqCWtt DtsaRkcTbFDz1WdwquibrM/BUNAwyISw7AfRw57ToItLQ2mJ24ObH5UdW9grfj8APqlZ oh7fb8N+pCTMiz+ozDlkt75zswekPYss29oMA= Received: by 10.141.28.4 with SMTP id f4mr6590376rvj.35.1221662373628; Wed, 17 Sep 2008 07:39:33 -0700 (PDT) Received: from ayiin ( [124.170.218.78]) by mx.google.com with ESMTPS id k41sm27819311rvb.9.2008.09.17.07.39.31 (version=SSLv3 cipher=RC4-MD5); Wed, 17 Sep 2008 07:39:32 -0700 (PDT) Date: Thu, 18 Sep 2008 00:39:27 +1000 From: Norberto Meijome To: David Wolfskill Message-ID: <20080918003927.56387d63@ayiin> In-Reply-To: <20080914120749.GN11991@bunrab.catwhisker.org> References: <20080912234822.GK11991@bunrab.catwhisker.org> <20080914211136.1be3550d@ayiin> <20080914120749.GN11991@bunrab.catwhisker.org> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-performance@freebsd.org Subject: Re: Using sysctl(1) to gather resource consumption data X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 14:39:34 -0000 On Sun, 14 Sep 2008 05:07:49 -0700 David Wolfskill wrote: > On Sun, Sep 14, 2008 at 09:11:36PM +1000, Norberto Meijome wrote: > > ... > > Out of curiosity, how does bsnmpd compare to your approach with regards to > > impact on the system. It is part of 7.0 , not sure about previous versions, > > and it is definitely a more standard and cross platform approach , with > > support @ NOC / alerting side of things. > > > > (for what is worth, i've only used net-snmpd , not bsnmpd )... > > Understood. As I understand it, an SNMP daemon (whether bsnmpd or > net-snmpd) would require some configuration on the remote host, and I > wasn't willing to require that. fair enough. I don't know about the default config of bsnmpd, but "default" in net-smpd, IIRC, means you access as public, pretty open. Not sure if there are MIBs for the information you need though. > Also, the only times I have used SNMP, it has been using a version that > did not support encryption in any form (as for as I know), and since > some of the transit was over facilities we don't control, I thought it > would be a bit more sensible to use SSH for the transport. but do you use encryption with your current system? [...] > Mind, I'm not especially keen on re-inventing stuff that already works > (or can be reasonably persuaded to work). But in this case, running an > SNMP daemon seemed to fail to meet my (admittedly, somewhat self- > imposed) requirements. hey , your requirements are yours :) I was just curious to know why snmp didnt cut it. B _________________________ {Beto|Norberto|Numard} Meijome "Gravity cannot be blamed for people falling in love." Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. From owner-freebsd-performance@FreeBSD.ORG Wed Sep 17 15:29:57 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEBFC106564A for ; Wed, 17 Sep 2008 15:29:57 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 8E9FF8FC12 for ; Wed, 17 Sep 2008 15:29:51 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id m8HFTpV0065264; Wed, 17 Sep 2008 08:29:51 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id m8HFTpcu065263; Wed, 17 Sep 2008 08:29:51 -0700 (PDT) (envelope-from david) Date: Wed, 17 Sep 2008 08:29:51 -0700 From: David Wolfskill To: Norberto Meijome Message-ID: <20080917152951.GH11991@bunrab.catwhisker.org> References: <20080912234822.GK11991@bunrab.catwhisker.org> <20080914211136.1be3550d@ayiin> <20080914120749.GN11991@bunrab.catwhisker.org> <20080918003927.56387d63@ayiin> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LTOOacGxsHChHpmt" Content-Disposition: inline In-Reply-To: <20080918003927.56387d63@ayiin> User-Agent: Mutt/1.4.2.1i Cc: freebsd-performance@freebsd.org Subject: Re: Using sysctl(1) to gather resource consumption data X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2008 15:29:57 -0000 --LTOOacGxsHChHpmt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 18, 2008 at 12:39:27AM +1000, Norberto Meijome wrote: > ... > > Also, the only times I have used SNMP, it has been using a version that > > did not support encryption in any form (as for as I know), and since > > some of the transit was over facilities we don't control, I thought it > > would be a bit more sensible to use SSH for the transport. >=20 > but do you use encryption with your current system?=20 Since it uses SSH for transport, yes. And it uses authentication, too (for the same reason). > [...] > > Mind, I'm not especially keen on re-inventing stuff that already works > > (or can be reasonably persuaded to work). But in this case, running an > > SNMP daemon seemed to fail to meet my (admittedly, somewhat self- > > imposed) requirements. >=20 > hey , your requirements are yours :) I was just curious to know why snmp = didnt > cut it. Fair enough. :-} Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --LTOOacGxsHChHpmt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkjRIm4ACgkQmprOCmdXAD3EwQCfWTWO0M3GgAgsYsFSKrfKozA6 kHMAnRRhFCrpi8rGSxCNA9ukSckRE1UZ =TMVu -----END PGP SIGNATURE----- --LTOOacGxsHChHpmt--