Zabbix实战(五)SNMP监控

安装snmp工具

yum -y install net-snmp net-snmp-agent-libs net-snmp-devel net-snmp-libs net-snmp-perl net-snmp-utils

配置snmpd.conf

#修改项如下
# First, map the community name "public" into a "security name"

#       sec.name  source          community
com2sec notConfigUser  default       Ui$dpp))09

com2sec notConfigUser 192.168.1.231 Ui$dpp))09
####
# Second, map the security name into a group name:

#       groupName      securityModel securityName
group   MyROGroup v1           notConfigUser
group   MyROGroup v2c           notConfigUser
group   MyROGroup usm notConfigUser

####
# Third, create a view for us to let the group have rights to:

# Make at least  snmpwalk -v 1 localhost -c public system fast again.
#       name           incl/excl     subtree         mask(optional)
#view    systemview    included   .1.3.6.1.2.1.1
#view    systemview    included   .1.3.6.1.2.1.25.1.1

view all included .1 80

####
# Finally, grant the group read-only access to the systemview view.

#       group          context sec.model sec.level prefix read   write  notif
#access  notConfigGroup ""      any       noauth    exact  systemview none none
access MyROGroup "" any noauth exact all none none

启动snmp服务

systemctl enable snmpd

systemctl start snmpd

zabbix添加snmp监控主机

在这里插入图片描述

链接模板
在这里插入图片描述

验证

在这里插入图片描述

  • 8
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值