ZABBIX Forums  
  #1  
Old 08-05-2017, 10:15
pangyf10 pangyf10 is offline
Junior Member
 
Join Date: May 2017
Posts: 1
Default zabbix 3.2.5 snmp无法工作

snmp无法工作。在主机的标签上snmp是绿的,但是没有监控到任何数据,在监控项中有红色I标志,详细 信息是:
No Such Object available on this agent at this OID

我用snmpwalk是可以查询到数据的,语句如下:
snmpwalk -v 2c -c public -On 192.168.1.40 IF-MIB::ifInOctets.6
结果如下:
.1.3.6.1.2.1.2.2.1.10.6 = Counter32: 635457726

完全不知道是什么问题,wireshark的监控中zabbix服务器并没有发送出任何snm p request。似乎是调用snmp失败。我使用zabbix服务器下预编译的安装包,以及从源码安装,都 是这个问题,我用源码安装确定加了--with-net-snmp参数的。
Reply With Quote
  #2  
Old 07-10-2017, 12:36
long.chen long.chen is offline
Junior Member
 
Join Date: Mar 2017
Posts: 13
Default

需要安装一些软件包的,以下是我安装的
Centos 7
yum install net-snmp net-snmp-utils

Ubuntu 16.04
apt-get install snmp snmp-mibs-downloader

如果还没有找到对应的OID, 需要去硬件供应商下载对应的MIB

测试
# Get values of an OID
snmpwalk -v 2c -c public <ip adress> <oid>
# Get all values of a sub-tree
snmpwalk -v 2c -c public <ip adress> .
snmpwalk -v 2c -c public <ip address> mib-2
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:53.