Linux SNMP监控配置
1, 安装SNMP服务
[root@zlm log]# yum -y install net-snmp net-snmp-utils
2, 编辑SNMP配置文件
[root@zlm log]# vim /etc/snmp/snmpd.conf
3, 重启SNMP服务
[root@zlm log]# systemctl restart snmpd
附加:
欧拉系统配置 https://forum.huawei.com/enterprise/zh/thread/580933654719381505
debian5安装
root@WH-SR20-183-5:~# apt-get install snmpd
root@WH-SR20-183-5:~# cd /etc/snmp/
root@WH-SR20-183-5:/etc/snmp# ls -l
total 8
-rw-r--r-- 1 root root 510 Aug 15 2022 snmp.conf
-rw------- 1 root root 3029 Aug 15 2022 snmpd.conf
root@WH-SR20-183-5:/etc/snmp# cp snmpd.conf snmpd.conf_bak
root@WH-SR20-183-5:/etc/snmp# vim snmpd.conf
root@WH-SR20-183-5:/etc/snmp# systemctl restart snmpd
root@WH-SR20-183-5:/etc/snmp# systemctl enable snmpd
Synchronizing state of snmpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable snmpd
root@WH-SR20-183-5:/etc/snmp#