Sekedar Documentasi untuk Pelupa

How to Install SNMP Slackware

Untuk memonitoring sebuah server diperlukan SNMP.

Saya menggunakan cacti sebagai network monitoring. Berikut cara install SNMP pada slackware

Download 
cd /usr/local/src
wget -c http://nchc.dl.sourceforge.net/project/net-snmp/net-snmp/5.4.4/net-snmp-5.4.4.tar.gz

Extract Source
tar xzvf net-snmp-5.4.4.tar.gz

Compile SNMP / SNMPD
cd net-snmp-5.4.4.tar.gz
./configure
make
make install
Start
/usr/local/sbin/snmpd

Apabila terjadi error
For a build to /usr/local, the shared libraries should be in
/usr/local/lib. Also, you will need to add that directory to your shared
library search path, which is not the same as PATH. For bash on Solaris or
Linux:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Fix with
export LD_LIBRARY_PATH=/usr/local/lib

Start
/usr/local/sbin/snmpd

Test
snmpwalk -c public -v1 127.0.0.1

Running at boot
echo “usr/local/sbin/snmpd” >> /etc/rc.d/rc.local

0 komentar: