본문 바로가기

Management

[Operations] SNMP on vROPS

 

SNMP 서버 구성은 CentOS에서 진행하였고, 아래 링크 참고

https://haewon83.tistory.com/76

 

vROPS UI > Configure > Alerts > Outbound Settings > ADD

 

Instance Name 입력(원하는 대로)

Destination Host에는 SNMP Server 입력

나머지는 모두 Default 값으로 선택하고 TEST 버튼 클릭

 

성공적으로 SNMP 서버와의 연결이 되면 다음과 같은 결과 화면 확인 가능

 

이 때, SNMP 서버인 CentOS에서 162 포트를 대상으로 Packet 수집을 해보면 다음과 같이 vROPS에서 전달되는 Packet 확인 가능

[root@localhost ~]# tcpdump -i ens224 dst port 162
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ens224, link-type EN10MB (Ethernet), capture size 262144 bytes
21:36:47.312142 IP 192.168.1.41.47020 > localhost.localdomain.snmptrap:  V2Trap(671)  system.sysUpTime.0=2474626922 S:1.1.4.1.0=E:6876.4.50.1.0.200 E:6876.4.50.1.2.1="localhost" E:6876.4.50.1.2.2="Test" E:6876.4.50.1.2.3="Test" E:6876.4.50.1.2.4="1686101806562" E:6876.4.50.1.2.5="Info" E:6876.4.50.1.2.6="Test trap" E:6876.4.50.1.2.7="" E:6876.4.50.1.2.8=0 E:6876.4.50.1.2.9="Test info message" E:6876.4.50.1.2.10="Test type" E:6876.4.50.1.2.11="Test subtype" E:6876.4.50.1.2.12="Test Health" E:6876.4.50.1.2.13="Test Risk" E:6876.4.50.1.2.14="Test Efficiency" E:6876.4.50.1.2.15="Test Metric Name" E:6876.4.50.1.2.16="Test Object Type" E:6876.4.50.1.2.17="Test Alert Definition Name" E:6876.4.50.1.2.18="Test Alert Definition Description" E:6876.4.50.1.2.19="Test Alert Impact" E:6876.4.50.1.2.20="Test Notification Rule"