Linux HOWTOs

About | Home | Search


HOWTO: ucd-snmp
Description: UCD Simple Network Management Protocol library and tools
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# ucd snmp 4.2.6
# ==============
# Note: net-snmp is a replacement for ucd-snmp.
# Unless you have a specific reason for sticking with the 4.x ucd versions,
# you should install that instead.

cd
test -f installed/ucd-snmp-4.2.6.tar.gz && mv installed/ucd-snmp-4.2.6.tar.gz .
test ! -f ucd-snmp-4.2.6.tar.gz &&
 wget http://download.sf.net/net-snmp/ucd-snmp-4.2.6.tar.gz

# Verify tarball w/ md5sum:
echo "cf3f24e6a69a4f52c14affe0064116b1" ; md5sum ucd-snmp-4.2.6.tar.gz

cd /usr/local/src
find -type d -maxdepth 1 -name "ucd-snmp-*" -exec rm -r {} \;
tar xzvf ~/ucd-snmp-4.2.6.tar.gz
cd ucd-snmp-4.2.6
chown -R root.root .
./configure --with-openssl=/usr/local/ssl --with-defaults
make
make install
cd perl/SNMP
perl Makefile.PL
make LDFLAGS=-L/usr/local/ssl/lib
make install
cd
mkdir -p -m 0700 installed
rm -f installed/ucd-snmp-*.tar.*
mv ucd-snmp-4.2.6.tar.gz installed/

# See EXAMPLE.conf for a sample /usr/local/share/snmp/snmpd.conf

## Here's one similar to what I use on a basic workstation box to monitor
## it's eth0 interface for use with mrtg:
#rocommunity secret
#syslocation Anytown, Anystate - USA
#syscontact root@foo.org
#interface eth0 62 100000000

## Add something like this to /etc/rc.d/rc.local to start it on boot-up:
#if [ -x /usr/local/sbin/snmpd ]; then
#  echo "Starting ucd-snmp..."
#  /usr/local/sbin/snmpd
#fi

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>