CentOS配置snmp
分类:CentOS教程 阅读:23111 次
安装:
yum install net-snmp net-snmp-utils(测试工具)
配置snmp
编辑/etc/snmp/snmpd.conf
更改团体名
查找如下行
# sec.name source community
com2sec notConfigUser default public
将团体名public改为其它任意字段,例:
com2sec notConfigUser defaultmonit
给予可读权限
查找如下行
# group context sec.model sec.level prefix read write notif
access notConfigGroup “” any noauth exact systemview none none
将read权限systemview改为all,例:
access notConfigGroup “” any noauth exact all none none
查找如下行
## incl/excl subtree mask
#view all included .1 80
去掉#view all前面的#,例:
view all included .1 80
启动snmpd服务
热门推荐
- CentOS中修改系统默认语言
- CentOS禁用root本地或远程ssh登录
- CentOS单用户模式下修改ROOT密码和grub加密
- CentOS单用户模式下修改ROOT密码和grub加密
- CentOS中命令别名的使用
- 私人定制自己的linux小系统
- CentOS 7 中firewall-cmd命令
- 新手经常用到的CentOS常用命令总结
- centos彻底删除文件夹、文件命令
- CentOS中通过stat查看文件的元数据
- VMWare虚拟机下Centos使用独立IP上网
- CentOS开机自动挂载局域网windows共享文件夹
- CentOS下判断自己的VPS是OpenVZ的还是Xen的
- CentOS防火墙iptables限制同一IP连接数
- CentOS下对Apache性能调试
- CentOS7设置终端快捷键
- Redhat6使用CentOS的yum源在线安装软件
- Redhat 7.0使用CentOS 7 的Yum 网络源
- CentOS中的chkconfig命令
- centos rpm 安装