From owner-freebsd-questions Sun Sep 24 19:56:55 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 6981837B422 for ; Sun, 24 Sep 2000 19:56:51 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id VAA20330; Sun, 24 Sep 2000 21:56:49 -0500 (CDT) (envelope-from dan) Date: Sun, 24 Sep 2000 21:56:49 -0500 From: Dan Nelson To: BWS - Offwhite Cc: freebsd-questions@FreeBSD.ORG, webmaster@oreillynet.com Subject: Re: snmp with mrtg for monitoring Message-ID: <20000924215649.A4730@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.9i In-Reply-To: ; from "BWS - Offwhite" on Sun Sep 24 21:13:07 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 24), BWS - Offwhite said: > I am just learning how to use SNMP to monitor various aspects of my > servers and then creating useful graphs with mrtg. I am reading material > here to learn how to do it. > > http://www.oreillynet.com/pub/a/bsd/2000/09/21/Big_Scary_Daemons.html > > # cpu load > Target[load]:.1.3.6.1.4.1.2021.10.1.3.1&.1.3.6.1.4.1.2021.10.1.3.2:HOME@localhost Try .1.3.6.1.4.1.2021.10.1.5.1 instead. 1.3.1 is a float, and since mrtg just graphs integers, you'll only be able to graph the number 0 and 1. 1.5.1 is the loadavg * 100, so you'll go from 0..100 most of the time. > # swap > Target[swap]:.1.3.6.1.4.1.2021.4.3.0&.1.3.6.1.4.1.2021.4.4.0:HOME@localhost This should be fine. Make sure that you set Options[load]=gauge (same for swap). > These both have a value for MaxBytes of 12500000. I probably should > change this, but the article from oreillynet.com does not give a > specific recommondation for this. The article seems to cut our a bit > early leaving me to do a great deal of guesswork. I'd set MaxBytes[load] at 100, but AbsMax at an outrageous number (100000 or whatever). That way you'll get numbers >100% when your loadavg goes above 1.00. Set MaxBytes[swap] at whatever your swap size is. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message