From owner-freebsd-questions Thu Jan 15 17:34:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA08094 for questions-outgoing; Thu, 15 Jan 1998 17:34:03 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from coal.sentex.ca (coal.sentex.ca [209.112.4.16]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA08037 for ; Thu, 15 Jan 1998 17:33:33 -0800 (PST) (envelope-from mike@sentex.net) Received: from gravel-remoteh.sentex.ca (gravel-remoteh.sentex.ca [207.245.212.157]) by coal.sentex.ca (8.8.8/8.8.7) with SMTP id UAA08784; Thu, 15 Jan 1998 20:39:31 -0500 (EST) (envelope-from mike@sentex.net) From: mike@sentex.net (Mike Tancsa) To: alx@scn.ru ("Alex N. Zhuravlev") Cc: questions@FreeBSD.ORG Subject: Re: snmpd Date: Fri, 16 Jan 1998 01:23:39 GMT Message-ID: <34beb4e7.1431383410@coal.sentex.net> References: <199801150657.NAA04143@keep.scn.ru> In-Reply-To: <199801150657.NAA04143@keep.scn.ru> X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk On Thu, 15 Jan 1998 13:55:02 +0700, in sentex.lists.freebsd.questions you wrote: >Hi ! >I want to get statistic from our router using mrtg. >Mrtg uses snmp to get statistic.How to make snmpd work on FreeBSD not client but >server??? Now we have FreeBSD-2.2.5 as a router. Install the UCD SNMP port from ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/net/ucd-snmp.tar and MRTG ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/ports/net/mrtg.tar Then edit /usr/local/lib/snmp/snmpd.conf and change the community names to something a little more secure than public and private and start up snmpd in the mrtg directory, do something like ./cfgmaker public@localhost > /usr/local/etc/mymrtg.cfg (replacing public with the community name you set) edit /usr/local/etc/mymrtg.cfg and set the line to WorkDir: /usr/local/www/data/ or where ever you want the html output to go then a crontab -e as root and enter in something like 0-59/10 * * * * /usr/local/bin/mrtg /usr/local/etc/mymrtg.cfg ---Mike