125.在CM中使用SNMP
2022-09-25 本文已影响0人
大勇任卷舒
125.1 SNMP安装
- 安装SNMP告警接收服务,命令如下:
# yum -y install net-snmp net-snmp-devel net-snmp-utils

- /etc/snmp/snmptrapd.conf配置文件修改
# vim /etc/snmp/snmptrapd.conf
# Example configuration file for snmptrapd
#
# No traps are handled by default, you must edit this file!
#
authCommunity log,execute,net public
# traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold
- 启动snmptrapd服务
# snmptrapd -C -c /etc/snmp/snmptrapd.conf -df -Lo
启动参数说明:
-C :表示不使用net-snmp默认路径下的配置文件snmptrapd.conf;
-c :指定snmptrapd.conf文件;
-d :显示收到和发送的数据报,通过这个选项可以看到数据报文;
-f :默认情况下,snmptrapd是在后台中运行的,加上这个选项,表示在前台运行;
-L :指定日志记录在哪里,后面的o表示直接输出到屏幕上,如果是跟着f表示日志记录到指定的文件中;
使用如上命令主要是用于方便的显示出接收到的SNMP告警信息。
125.2 SNMP服务配置
-
登录CM
-
CM Service服务
125.3 验证SNMP服务




125.4 MIB



大数据视频推荐:
CSDN
人工智能算法竞赛实战
AIops智能运维机器学习算法实战
ELK7 stack开发运维实战
PySpark机器学习从入门到精通
AIOps智能运维实战
腾讯课堂
大数据语音推荐:
ELK7 stack开发运维
企业级大数据技术应用
大数据机器学习案例之推荐系统
自然语言处理
大数据基础
人工智能:深度学习入门到精通