Ad Widget

Collapse

How to construct a zabbix_trapper packet ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alfsolli
    Junior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Aug 2010
    • 19

    #1

    How to construct a zabbix_trapper packet ?

    I'm trying to create a zabbix_trapper packet, and seem to be failing.
    I'm testing with a text file, and sending it through netcat to the zabbix server, just to verify it'll work.
    (I'm gonna use this in a microcontroller(arduino), that's why I'm not using the zabbix_sender utility )

    test.trap (text file ) :
    request: "sender data"
    data:""
    host: "Kitsune"
    key: "test.trap"
    value: "5"

    Sending to zabbix server:
    Kitsune:/tmp # cat test.trap | netcat 192.168.10.44 10051
    OKKitsune:/tmp #

    Notice the "OK" statement being returned, but nothing changed on the server.

    Any pointers ?
    I'm using zabbix 1.8.5
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    take a look at http://www.zabbix.com/documentation/1.8/protocols/agent,
    the data you send don't seem like valid json to me anyway...

    I think you should try sending the same data with zabbix_send and capturing the nework packet, and then compare with the trace from the necat version...
    Last edited by ghoz; 09-09-2011, 14:30. Reason: tyop

    Comment

    Working...