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?
 
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
0
 
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
0
 
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
0
 
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!!!

0
 
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.