Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 1999 13:32:17 -0300 (ADT)
From:      The Hermit Hacker <scrappy@hub.org>
To:        Bryan Albright <bryana@uswest.net>
Cc:        Mike Tancsa <mike@sentex.net>, Gong Wei <ccegongw@nus.edu.sg>, freebsd-questions@FreeBSD.ORG
Subject:   Re: 3.3 Stable Performance Monitoring
Message-ID:  <Pine.BSF.4.10.9910231330210.404-100000@thelab.hub.org>
In-Reply-To: <19991023103802.A69467@thor.oss.uswest.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9910231330210.404-100000>