Kvm.la - snmp
type: channel
link: https://kvm.la/tag/snmp/
items: Linux部署snmpd监控服务

Linux部署snmpd监控服务
type: item
date: 2024-01-17T05:35:06+00:00
description: yum install snmp -y cat>/etc/snmp/snmpd.conf<<EOF sysLocation Sitting on the Dock of the Bay sysContact Me <me@example.org> sysServices 72 master agentx view systemview included .1.3.6.1.2.1 view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.2.1.25.1.1 view systemview included .1.3.6.1.2.1.2.2.1.1 view systemonly included .1.3.6.1.2.1.1 view systemonly included .1.3.6.1.2.1.25.1 view systemview included .1.3.6.1.2.1.2.2.1 rocommunity public1611 default rocommunity6 public1611 default -V systemonly createUser snmpname SHA "123pwd" AES "123pwd" rouser snmpname usmSecurityLevel authPriv usmUser snmpname - SHA "123pwd" AES "123pwd" com2sec readonly default public1611 group MyROGroup v2c readonly view all included .1 80 access MyROGroup "" any noauth exact all none none rocommunity public1611 agentaddress udp:127.0.0.1:16100 EOF