How to install SNMP on FreeBSD 5.4 ?

Hi Guys
The intention was to Monitor my FreeBSD 5.4 machine from a Windows Workstation. I found the tool that would do that, "ManageEngine".
ManageEngine requires SNMP Agent to be running on the FreeBSD machine for which I followed the instruction in the first half of this document to install "Net-SNMP".
The problem is after completing everything and rebooting the box, the ManageEngine still complains saying SNMP Agent is not running on the FreeBSD.
I am not sure if I am right, but when I run a "Top" on FreeBSD, I do not see anything that could mean SNMP there. What could I have missed?

Thanks in advance for your time...
Ruf
LVL 1
RufAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RufAuthor Commented:
silverwraith.com/papers/freebsd-snmp.php That's what I followed to configure SNMP. The first half of it contains the text.

Ruf
gheistCommented:
very basic snmp agent is bsnmpd, it serves only network.
Your tool should not reject such node. If it does it is tool's problem, not FreeBSD's or SNMP server's

cd /usr/ports/net-mgmt/bsnmpd
make install clean
echo bsnmpd_enable=YES >> /etc/rc.conf
cp /usr/local/etc/snmpd.config.example /usr/local/etc/snmpd.config

edit /usr/local/etc/snmpd.config to your preference - make it listen on IP address exposed to ManageEngine in addition to localhost, add "public" community.

/usr/local/etc/rc.d/bsnmpd.sh start


to test:
snmpwalk -v1 -cpublic 127.0.0.1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RufAuthor Commented:
Hey Gheist
I am so sorry to have taken this long. Anyway, I was unable to install BSNMP, the /usr/ports/net-mgmt in FreeBSD 5.4 does not contain a bsnmpd directory. Second, I tried running pkg_add -r bsnmpd which also yealds to nothing. I see it checking the ftp site of freebsd.org and returning saying it couldn't find bsnmpd. In fact I verified to make sure I am not reading the report wrong. The FreeBSD site's ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.4-release/net-mgmt/ doesn't contain a bsnmpd directory...
How do I proceed...?

Thanks
Ruf
gheistCommented:
Take a upgrade path

FreeBSD 5.4 -> RELENG_5_4 ( i.e 5.4 + security patches )
ports -> CURRENT

as root:

cd /usr/ports/net/cvsup-without-gui
make install clean ; rehash

then run cvsup by using file with following content as parameter:

*default tag=RELENG_5_4
*default host=cvsup.xx.freebsd.org
*default prefix=/usr
*default base=/usr/local/etc/cvsup
*default release=cvs
*default delete
*default use-rel-suffix
*default compress

ports-all tag=.
src-all

replace xx with your country code, or some nearby country code.

next remove /usr/ports/INDEX-5*
then install /usr/ports/sysutils/portupgrade
and /usr/ports/sysutils/portaudit

now rehash and run portaudit -Fda and portversion -c

hope you understand what has to be done now.

now go to www.freebsd.org/handbook, and look how to rebuild kernel and system. despites many warnings such close upgrade does not fail.

now you are ready to install bsnmpd!!!

gheistCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept gheist http:#16315040 

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.