net-snmp
wget http://cesnet.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.0.8.tar.gz
tar xvzf net-snmp-5.0.8.tar.gz -C /usr/local/src
./configure -prefix=/usr/loca/snmp
configure시 다음 사항 입력. 입력하지 않은 것은 디폴트 사용.
Default version of SNMP to use (3):
System Contact Information (root@): kang@dbakorea.pe.kr
System Location (Unknown): Hang-Shin dong, Goyang City, Kyung-Gi do, Republic of Korea
Location to write logfile (/var/log/snmpd.log):
Location to write persistent information (/var/net-snmp):
make; make install
cp EXAMPLE.conf /usr/local/snmp/share/snmp/snmpd.conf
/usr/local/snmp/share/snmp/snmpd.conf
snmpd.conf
#sec.name source community
com2sec local localhost public
com2sec mynetwork 211.173.170.79 public
####
# Second, map the security names into group names:
# sec.model sec.name
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
####
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1 80
view systemview included system
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation efrit0820.codns.com
syscontact root@efrit0820.codns.com
proc httpd
proc mysqld
disk / 10%
disk /var 10%
disk /usr 10%
disk /tmp 10%
disk /home 10%
load 15 10 10
wget http://cesnet.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.0.8.tar.gz
tar xvzf net-snmp-5.0.8.tar.gz -C /usr/local/src
./configure -prefix=/usr/loca/snmp
configure시 다음 사항 입력. 입력하지 않은 것은 디폴트 사용.
Default version of SNMP to use (3):
System Contact Information (root@): kang@dbakorea.pe.kr
System Location (Unknown): Hang-Shin dong, Goyang City, Kyung-Gi do, Republic of Korea
Location to write logfile (/var/log/snmpd.log):
Location to write persistent information (/var/net-snmp):
make; make install
cp EXAMPLE.conf /usr/local/snmp/share/snmp/snmpd.conf
/usr/local/snmp/share/snmp/snmpd.conf
snmpd.conf
#sec.name source community
com2sec local localhost public
com2sec mynetwork 211.173.170.79 public
####
# Second, map the security names into group names:
# sec.model sec.name
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
####
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1 80
view systemview included system
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
syslocation efrit0820.codns.com
syscontact root@efrit0820.codns.com
proc httpd
proc mysqld
disk / 10%
disk /var 10%
disk /usr 10%
disk /tmp 10%
disk /home 10%
load 15 10 10
'linux > Install' 카테고리의 다른 글
A(2.0.54)P(5.0.4)M(4.1.18)++Zend+Tomcat (0) | 2007.03.15 |
---|---|
vsftpd 설치 (0) | 2007.03.15 |
MRTG (0) | 2007.03.15 |
webalizer setting (0) | 2007.03.15 |
A(1.3.31)P(4.0)M(3.xx) setting (0) | 2007.03.15 |