# 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
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