Ad Widget

Collapse

Submitting multiple items at once through the zabbix_trapper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gerco
    Junior Member
    • Nov 2006
    • 22

    #1

    Submitting multiple items at once through the zabbix_trapper

    Hello Zabbix forum,

    I've written a module for Sonic MQ that sends metrics and notifications to Zabbix through the zabbix trapper interface (the same that zabbix_sender uses). I'm using the XML syntax to send my data.

    My problem is now that I have a lot of data to send (several hundreds of items per minute) and Zabbix doesn't allow me to send multiple items over the same TCP connection. I have to open a new connection for every item.

    Is it possible to send multiple items in one request? If so, how?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    zabbix_sender supports sending of pre-prepared list of values to ZABBIX server. Note that even in this case zabbix_sender will open one connection per each sent item. I'm not sure if this is on option for you.

    Currently ZABBIX protocol does not support sending of multiple value per one TCP connection.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Gerco
      Junior Member
      • Nov 2006
      • 22

      #3
      zabbix_sender does not work for me, because I'm not running *nix on the monitored host, but Win32. Besides that, opening a new connection for each value is the problem, because it takes too long.

      The monitored host is on a rather high-latency network and it can only open a few connections per second, which is too slow for my needs. I'll look into patching zabbix_server to include this behaviour, but my C language skills might be insufficient. If I succeed, I'll try and get permission from my employer to post the patch here.

      Comment

      • ad@kbc-clearing.com
        Member
        • Sep 2005
        • 77

        #4
        Did you know: There is a zabbix_sender for win32.
        The problem with the connections remains, however.

        Comment

        Working...