Date: Tue, 27 May 2003 16:32:22 -0700 From: "Derrick Ryalls" <ryallsd@datasphereweb.com> To: <toni@stderror.at>, <freebsd-questions@FreeBSD.ORG> Subject: RE: Machine statistics -Solved Message-ID: <015301c324a8$3c206ed0$0200a8c0@bartxp> In-Reply-To: <20030527085159.GB60276@devil.stderror.at>
next in thread | previous in thread | raw e-mail | index | archive | help
>=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?015301c324a8$3c206ed0$0200a8c0>