How to install SNMP on FreeBSD 5.4 ?

Posted on 2006-03-28
Last Modified: 2013-11-22
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...
Question by:Ruf
    LVL 1

    Author Comment

    by:Ruf That's what I followed to configure SNMP. The first half of it contains the text.

    LVL 61

    Accepted Solution

    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/ start

    to test:
    snmpwalk -v1 -cpublic
    LVL 1

    Author Comment

    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 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 doesn't contain a bsnmpd directory...
    How do I proceed...?

    LVL 61

    Expert Comment

    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 prefix=/usr
    *default base=/usr/local/etc/cvsup
    *default release=cvs
    *default delete
    *default use-rel-suffix
    *default compress

    ports-all tag=.

    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, and look how to rebuild kernel and system. despites many warnings such close upgrade does not fail.

    now you are ready to install bsnmpd!!!

    LVL 61

    Expert Comment

    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.

    EE Cleanup Volunteer

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now