Date: Tue, 27 May 2003 10:51:59 +0200 From: Toni Schmidbauer <toni@stderror.at> To: freebsd-questions@FreeBSD.ORG Subject: Re: Machine statistics Message-ID: <20030527085159.GB60276@devil.stderror.at> In-Reply-To: <00f201c323eb$deb44a30$0200a8c0@bartxp> References: <00f201c323eb$deb44a30$0200a8c0@bartxp>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030527085159.GB60276>