SNMP 구성 관련 사이트
https://docs.oracle.com/cd/E24292_01/ko/E50686/html/snmpconfig.htm
SNMP 설치
#apt-get snmpd snmp rrdtool
#mv /etc/snmp/snmpd.coonf /etc/snmp/snmpd.conf.default
#cd /usr/local/bin
#wget --no-check-certificate https://raw.githubusercontent.com/markround/Cacti-iostat-templates/master/scripts/iostat-persist.pl
#vi /etc/snmp/snmpd.conf
syslocation "SNMP Location Name"
syscontact master@localhost
# sec.name source community
com2sec local 127.0.0.1 snmpComm
com2sec privateUser 192.168.0.0/16 snmpComm
# groupName securityModel securityName
group localGroup v1 local
group localGroup v2c local
group privateGroup v1 privateUser
group privateGroup v2c privateUser
# group context sec.model sec.level prefix read write notif
access localGroup "" any noauth exact all all all
access privateGroup "" any noauth exact all none none
## incl/excl subtree mask
view all included .1 80
# iostat
pass_persist .1.3.6.1.3.1 /usr/bin/perl /usr/local/bin/iostat-persist.pl
#vi /etc/default/snmpd
#기존 SNMPDOPTS 주석처리
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
#아래 내용으로 추가
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
#service snmpd restart
#snmpwalk -v2c -c snmpComm localhost .1
https://docs.oracle.com/cd/E24292_01/ko/E50686/html/snmpconfig.htm
SNMP 설치
#apt-get snmpd snmp rrdtool
#mv /etc/snmp/snmpd.coonf /etc/snmp/snmpd.conf.default
#cd /usr/local/bin
#wget --no-check-certificate https://raw.githubusercontent.com/markround/Cacti-iostat-templates/master/scripts/iostat-persist.pl
#vi /etc/snmp/snmpd.conf
syslocation "SNMP Location Name"
syscontact master@localhost
# sec.name source community
com2sec local 127.0.0.1 snmpComm
com2sec privateUser 192.168.0.0/16 snmpComm
# groupName securityModel securityName
group localGroup v1 local
group localGroup v2c local
group privateGroup v1 privateUser
group privateGroup v2c privateUser
# group context sec.model sec.level prefix read write notif
access localGroup "" any noauth exact all all all
access privateGroup "" any noauth exact all none none
## incl/excl subtree mask
view all included .1 80
# iostat
pass_persist .1.3.6.1.3.1 /usr/bin/perl /usr/local/bin/iostat-persist.pl
#vi /etc/default/snmpd
#기존 SNMPDOPTS 주석처리
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux,mteTrigger,mteTriggerConf -p /var/run/snmpd.pid'
#아래 내용으로 추가
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
#service snmpd restart
#snmpwalk -v2c -c snmpComm localhost .1
댓글
댓글 쓰기