snmp 최신버전을 다운받는다
http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=11571
[
net-snmp - Browse /net-snmp at SourceForge.net
×
sourceforge.net
](http://sourceforge.net/project/showfiles.php?group_id=12694&package_id=11571)
#tar zxvf net-snmp-5.9.tar.gz
#cd net-snmp-5.9
#./configure --prefix=/usr/local/snmp
## 도중 나오는 과정은 전부 enter ##
#make && make install
## snmpd.conf 파일이없으므로 하나 생성해준다. ##
#vi /usr/local/snmp/share/snmp/snmpd.conf
<내용은 알아서 수정>
설치후 snmp 구동법
#/usr/local/snmp/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
혹은
#vi /etc/init.d/snmpd
#!/bin/bash ### BEGIN INIT INFO # source function library OPTIONS="-LS0-6d -Lf /dev/null -p /var/run/snmpd.pid" RETVAL=0 start() { stop() { reload(){ restart(){ condrestart(){ case "$1" in exit $RETVAL |
#chmod 700 /etc/init.d/snmpd
#chkconfig --level 3 snmpd
작업후
#/etc/init.d/snmpd start
#netstat -nltpu
위명령어로 161UDP 포트가 띄어져있는지 확인한다
'리눅스 > 기타' 카테고리의 다른 글
zabbix 5.2 그래프 한글깨짐 (0) | 2021.01.26 |
---|---|
오픈소스 모니터링 zabbix 5.2 소스설치 (0) | 2021.01.25 |
postgres12 ha 구성방법 (0) | 2020.09.15 |
postgresql 소스설치 (0) | 2020.09.07 |
Linux : R1Soft failed backup of LVM configuration (0) | 2020.02.17 |