From owner-freebsd-questions Sat Oct 23 9:33:18 1999 Delivered-To: freebsd-questions@freebsd.org Received: from thelab.hub.org (nat198.58.mpoweredpc.net [142.177.198.58]) by hub.freebsd.org (Postfix) with ESMTP id F005614C36 for ; Sat, 23 Oct 1999 09:32:57 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from localhost (scrappy@localhost) by thelab.hub.org (8.9.3/8.9.1) with ESMTP id NAA96399; Sat, 23 Oct 1999 13:32:22 -0300 (ADT) (envelope-from scrappy@hub.org) X-Authentication-Warning: thelab.hub.org: scrappy owned process doing -bs Date: Sat, 23 Oct 1999 13:32:17 -0300 (ADT) From: The Hermit Hacker To: Bryan Albright Cc: Mike Tancsa , Gong Wei , freebsd-questions@FreeBSD.ORG Subject: Re: 3.3 Stable Performance Monitoring In-Reply-To: <19991023103802.A69467@thor.oss.uswest.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Actually, based on this, I went back into EXAMPLES.conf to see if I could incorporate this...I obviously hadn't read far enough in the file, as there is a section in there that goes like: ############################################################################### # load average checks # # load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0] # # 1MAX: If the 1 minute load average is above this limit at query # time, the errorFlag will be set. # 5MAX: Similar, but for 5 min average. # 15MAX: Similar, but for 15 min average. # Check for loads: load 12 14 14 # % snmpwalk -v 1 localhost public .1.3.6.1.4.1.2021.10 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.1 = 1 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.2 = 2 # enterprises.ucdavis.loadTable.laEntry.loadaveIndex.3 = 3 # enterprises.ucdavis.loadTable.laEntry.loadaveNames.1 = "Load-1" # enterprises.ucdavis.loadTable.laEntry.loadaveNames.2 = "Load-5" # enterprises.ucdavis.loadTable.laEntry.loadaveNames.3 = "Load-15" # enterprises.ucdavis.loadTable.laEntry.loadaveLoad.1 = "0.49" Hex: 30 2E 34 39 # enterprises.ucdavis.loadTable.laEntry.loadaveLoad.2 = "0.31" Hex: 30 2E 33 31 # enterprises.ucdavis.loadTable.laEntry.loadaveLoad.3 = "0.26" Hex: 30 2E 32 36 # enterprises.ucdavis.loadTable.laEntry.loadaveConfig.1 = "12.00" # enterprises.ucdavis.loadTable.laEntry.loadaveConfig.2 = "14.00" # enterprises.ucdavis.loadTable.laEntry.loadaveConfig.3 = "14.00" # enterprises.ucdavis.loadTable.laEntry.loadaveErrorFlag.1 = 0 # enterprises.ucdavis.loadTable.laEntry.loadaveErrorFlag.2 = 0 # enterprises.ucdavis.loadTable.laEntry.loadaveErrorFlag.3 = 0 # enterprises.ucdavis.loadTable.laEntry.loadaveErrMessage.1 = "" # enterprises.ucdavis.loadTable.laEntry.loadaveErrMessage.2 = "" # enterprises.ucdavis.loadTable.laEntry.loadaveErrMessage.3 = "" # ----------------------------------------------------------------------------- That works... thanks for the reminder about sysctl though, am going to look through its output and see what I can pull out of it... On Sat, 23 Oct 1999, Bryan Albright wrote: > ---On 10/23/99 at 12:56, someone may or may not have written 1.6K bytes--- > > On Fri, 22 Oct 1999, Mike Tancsa wrote: > > Being quite interested in this as well, went to search the archives and > > for something that's been "asked and answered before", am having a fun > > time trying to find it :) > > > > One thing I'm interested in doing is monitoring something that I'd figure > > would be simple: loadavg. But, snmpwalk on my machine (ucd-snmp 4.0.1 > > isntalled) reveals very little information other then those that appear to > > deal with the network, where there is oddles of info ... > > > > I'm lookign through the ucd-snmp web site right now, adn the EXAMPLES.conf > > file that comes with the distribution, but would think stuff like: > > > > % swap usage > > % cpu usage > > loadavg > > Well, for the load average, you could use sysctl -n vm.loadavg to get > the information: > > > sysctl -n vm.loadavg > { 0.15 0.06 0.02 } > > > I'm not sure how helpful this would be however, I've not used snmp yet. > > Bryan > -- > +---------------------------+--------------------------+ > | Bryan Albright | bryana@uswest.net | > +---------------------------+--------------------------+ > | Plumber's sign: "We repair what your husband Fixed." | > +------------------------------------------------------+ > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message