Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jan 1998 01:23:39 GMT
From:      mike@sentex.net (Mike Tancsa)
To:        alx@scn.ru ("Alex N. Zhuravlev")
Cc:        questions@FreeBSD.ORG
Subject:   Re: snmpd
Message-ID:  <34beb4e7.1431383410@coal.sentex.net>
In-Reply-To: <199801150657.NAA04143@keep.scn.ru>
References:  <199801150657.NAA04143@keep.scn.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
		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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34beb4e7.1431383410>