求助,snmptrap的配置

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    求助,snmptrap的配置

    hi
    想收集snmptrap,然后显示到zabbix,配置如下,但是就是zabbix里面显示不 出来:

    /etc/zabbix/zabbix_server.conf:
    #SNMP Trapper
    StartSNMPTrapper=1
    SNMPTrapperFile=/var/log/snmptt/snmptt.log

    /etc/snmp/snmptt.ini:
    log_file = /var/log/snmptt/snmptt.log

    /etc/snmp/snmptt.conf:
    EVENT general .* "General event" Normal
    FORMAT ZBXTRAP $aA $ar

    zabbix页面里面创建了host:
    SNMP interfaces: 192.168.254.37 port 161

    host添加了item:
    Type: snmp trap
    key:snmptrap["General"]
    hostinterface:192.168.254.37:161
    Type of information:character



    测试的时候已经可以在/var/log/snmptt/snmptt.log看到如下条目,但是就是zabbix没东西:

    17:42:19 2015/11/06 .2.3.6.1.4.1.1916.0.3 Normal "General event" 192.168.254.37 - ZBXTRAP 192.168.254.37 192.168.254.37


    哪位知道是怎么回事啊?多谢了。

Announcement

Collapse
No announcement yet.
Working...
X