From owner-freebsd-questions@FreeBSD.ORG Tue May 27 16:32:35 2003 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 4B29237B401 for ; Tue, 27 May 2003 16:32:35 -0700 (PDT) Received: from 12-229-238-38.client.attbi.com (evrtwa1-ar17-4-47-114-001.evrtwa1.dsl-verizon.net [4.47.114.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 7C32543F85 for ; Tue, 27 May 2003 16:32:34 -0700 (PDT) (envelope-from ryallsd@datasphereweb.com) Received: (qmail 79830 invoked from network); 27 May 2003 23:32:33 -0000 Received: from unknown (HELO bartxp) (192.168.0.2) by 192.168.0.1 with SMTP; 27 May 2003 23:32:33 -0000 From: "Derrick Ryalls" To: , Date: Tue, 27 May 2003 16:32:22 -0700 Message-ID: <015301c324a8$3c206ed0$0200a8c0@bartxp> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-reply-to: <20030527085159.GB60276@devil.stderror.at> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: Machine statistics -Solved 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, 27 May 2003 23:32:35 -0000 >=20 > put this minimal snmpd.conf in /usr/local/share/snmpd.conf: >=20 > ******************************* > syslocation your localtion > syscontact you@yourdomain.tld > sysname your.system.name.tld > rwcommunity password > rocommunity otherpassword > agentaddress udp:161@127.0.0.1,tcp:161@127.0.0.1 It worked with agentaddress 127.0.0.1 and putting the file in the correct place. Thanks. >=20 > # trap configuration > authtrapenable 1 > trapcommunity otherotherpassword > trapsink localhost > trap2sink localhost > ******************************* >=20 > then restart snmpd. try the following command: >=20 > snmpget localhost otherpassword .1.3.6.1.2.1.25.1.5.0 >=20 > you should get: >=20 > host.hrSystem.hrSystemNumUsers.0 =3D Gauge32: 2 >=20 > now run: >=20 > cfgmaker otherpassword@localhost >> /usr/local/etc/mrtg/mrtg.cfg >=20 > and >=20 > indexmaker --title "MRTG@yourhost" --output=20 > /usr/local/www/data/mrtg/index.html /usr/local/etc/mrtg/mrtg.cfg >=20 > then run "mrtg /usr/local/etc/mrtg/mrtg.cfg" three times,=20 > after the last run there should be no warnings. >=20 > hopefully you have apache installed, then direct your browser=20 > to http://yourhost/mrtg/ >=20 > i would also recommend reading the excellent "Essential SNMP". > (http://www.oreilly.com/catalog/esnmp/) >=20 > hth, > toni > --=20 > Behandle die Menschen, als w=E4ren sie, was sie sein | toni at=20 > stderror dot at sollten, und du wirst ihnen helfen, zu=20 > werden, was | Toni Schmidbauer > sie sein k=F6nnen. - Johann Wolfgang von Goethe | >=20