From owner-freebsd-questions@FreeBSD.ORG Tue May 27 01:52:02 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 5854237B401 for ; Tue, 27 May 2003 01:52:02 -0700 (PDT) Received: from devil.stderror.at (at00d01-adsl-194-118-044-149.nextranet.at [194.118.44.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3716143FAF for ; Tue, 27 May 2003 01:52:01 -0700 (PDT) (envelope-from pinhead@stderror.at) Received: by devil.stderror.at (Postfix, from userid 1000) id 9BA9115316; Tue, 27 May 2003 10:51:59 +0200 (CEST) Date: Tue, 27 May 2003 10:51:59 +0200 From: Toni Schmidbauer To: freebsd-questions@FreeBSD.ORG Message-ID: <20030527085159.GB60276@devil.stderror.at> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <00f201c323eb$deb44a30$0200a8c0@bartxp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Bina0ufSB9dLMnVr" Content-Disposition: inline In-Reply-To: <00f201c323eb$deb44a30$0200a8c0@bartxp> User-Agent: Mutt/1.4.1i Subject: Re: Machine statistics X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: toni@stderror.at List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 08:52:02 -0000 --Bina0ufSB9dLMnVr Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 26, 2003 at 06:03:58PM -0700, Derrick Ryalls wrote: > I run a game server this is running FBSD4.7, and I decided I wanted to > have web graphs of various things like bandwidth usage, cpu load, etc. > I saw MRTG and thought I would give it a try. >=20 > Documentation is kinda poor for setting things up, but most of it refers > to using SNMP for much of what I want. After flipping a coin, I > installed /ports/net/net-snmp. I ran though a quick config using > snmpconf, but no matter what options I choose, I cannot get MRTG's > configmaker to talk to SNMP. I get the same results whether or not the > snmpd is running, so something is wrong. No firewall is in place, so it > is probably just a configuration/usage issue. Any ideas on how to > use/configure SNMP or can someone recommend an easy to use SNMP program > that works with MRTG? put this minimal snmpd.conf in /usr/local/share/snmpd.conf: ******************************* 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 # trap configuration authtrapenable 1 trapcommunity otherotherpassword trapsink localhost trap2sink localhost ******************************* then restart snmpd. try the following command: snmpget localhost otherpassword .1.3.6.1.2.1.25.1.5.0 you should get: host.hrSystem.hrSystemNumUsers.0 =3D Gauge32: 2 now run: cfgmaker otherpassword@localhost >> /usr/local/etc/mrtg/mrtg.cfg and indexmaker --title "MRTG@yourhost" --output /usr/local/www/data/mrtg/index.= html /usr/local/etc/mrtg/mrtg.cfg then run "mrtg /usr/local/etc/mrtg/mrtg.cfg" three times, after the last run there should be no warnings. hopefully you have apache installed, then direct your browser to http://yourhost/mrtg/ i would also recommend reading the excellent "Essential SNMP". (http://www.oreilly.com/catalog/esnmp/) hth, toni --=20 Behandle die Menschen, als w=E4ren sie, was sie sein | toni at stderror dot= at sollten, und du wirst ihnen helfen, zu werden, was | Toni Schmidbauer sie sein k=F6nnen. - Johann Wolfgang von Goethe | --Bina0ufSB9dLMnVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+0ycuu/mjSj7RMocRArfYAKCBimvsqutp98wvLnVzhYRZ6L1RHACggbEf beuNu4hth05wYObQMdBo120= =bt7r -----END PGP SIGNATURE----- --Bina0ufSB9dLMnVr--