Ad Widget

Collapse

traps

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fito
    Junior Member
    • Sep 2010
    • 6

    #1

    traps

    Hi,
    I am running Zabbix 2.2.7 server, and I have decided to use some new zabbix trapper items.

    So, first of all I have configured SNMPTrapperFile at the server side :

    zabbix Server conf:
    StartTrappers=60
    SNMPTrapperFile=/var/zabbix/tmp/zabbix_traps.tmp
    trappers are running at server side :
    /opt/infra/sbin/zabbix_server: trapper #1 [processed data in 0.004876 sec, waiting for connection]
    /opt/infra/sbin/zabbix_server: trapper #2 [processed data in 0.000699 sec, waiting for connection]
    /opt/infra/sbin/zabbix_server: trapper #3 [processed data in 0.000675 sec, waiting for connection]
    /opt/infra/sbin/zabbix_server: trapper #4 [processed data in 0.003563 sec, waiting for connection]
    /opt/infra/sbin/zabbix_server: trapper #5 [processed data in 0.000535 sec, waiting for connection]
    ....
    /opt/infra/sbin/zabbix_server: trapper #60 [processed data in 0.000535 sec, waiting for connection]
    some traps flowing into /var/zabbix/tmp/zabbix_traps.tmp :
    06:46:08 2015/06/19 ZBXTRAP 10.128.191.14
    PDU INFO:
    errorindex 0
    receivedfrom UDP: [10.128.191.14]:46493->[0.0.0.0]:0
    version 1
    messageid 0
    transactionid 1338993
    community public
    requestid 0
    notificationtype TRAP
    errorstatus 0
    VARBINDS:
    DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (45135243) 5 days, 5:22:32.43
    SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: SNMPv2-SMI::enterprises.32827.10.421
    SNMPv2-SMI::enterprises.32827.10.421.1 type=2 value=INTEGER: 5
    SNMPv2-SMI::enterprises.32827.10.421.2 type=2 value=INTEGER: 0
    SNMPv2-SMI::enterprises.32827.10.421.11 type=4 value=STRING: "BackupBattery"
    SNMPv2-SMI::enterprises.32827.10.421.12 type=4 value=STRING: "41011091901430000070599"
    From this trap, I need to grab STRING: "41011091901430000070599" , and put it into item "BackupBattery" as a TEXT. (there will be differ strings started with 41011...., )

    So, at host configuration, I have created item "BackupBattery"


    but, oddly enough, it does not work. Item just stay as "enabled" and in the "latest data" there is nothing....

    many thanks for your help.
    F
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you want to use SNMP Trap handring, you must set process number to StartSNMPTrapper.
    And, If you want use Zabbix's SNMP Trapper, you must reformat trapdata by snmptt.
    And, Item type must select to "SNMP trap".

    details:


    "StartTrappers" is processes for active monitoring by zabbix agent or zabbix_sender command.

    Comment

    • fito
      Junior Member
      • Sep 2010
      • 6

      #3
      Many thanks, it works now, seems that I have tried to stick two fonctionalities together
      Mea culpa,
      F

      Comment

      Working...