ThinkPad560(VineLinux)(2003/03/08-09)
ucd-snmp-4.2.6.tar.gzを取得
tar zxvf ucd-snmp-4.2.6.tar.gz
cd ucd-snmp-4.2.6
./configure
(中略)
System Contact Information (root@): root@masaji.org
(中略)
System Location (Unknown): masaji.org Server
(中略)
Location to write logfile (/var/log/snmpd.log):
(中略)
Location to write persistent information (/var/ucd-snmp):
(中略)
make
make install
cp EXAMPLE.conf.def /usr/local/share/snmp/snmpd.conf
vi /usr/local/share/snmp/snmpd.conf
com2sec local localhost COMMUNITY
com2sec mynetwork NETWORK/24 COMMUNITY
↓
com2sec local localhost local
com2sec mynetwork 192.168.1.0/24 public
syscontact Me
↓
#syscontact Me
syscontact Root
vi /etc/rc.d/init.d/snmpd
/sbin/chkconfig --level 2345 snmpd on
chmod 755 /etc/rc.d/init.d/snmpd
/etc/rc.d/init.d/snmpd start
cat /var/log/snmpd.log