Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22789

zabbix_sender v6.4 hangs when sending value to 2 servers

XMLWordPrintable

    • Sprint 103 (Aug 2023)
    • 0.25

      To reproduce, have this sender.conf file (think it's agent's conf file):

      ServerActive=127.0.0.1,127.0.0.1:10061
      Hostname=it0
      

      Have 2 zabbix servers running. In current example locally, on different ports for trappers (default 10051 and 10061), but it does not matter. The same happens with 2 separate servers in network on different IPs.

      sender v6.2 works fine:

      # /zab/bin/6.2/zabbix_sender -V
      zabbix_sender (Zabbix) 6.2.9
      Revision {ZABBIX_REVISION} 27 March 2023, compilation time: May 11 2023 16:02:16
      
      # /zab/bin/6.2/zabbix_sender -c /zab/bin/sender.conf -k test.item -o 123 -vv
      zabbix_sender [337102]: DEBUG: In zbx_connect_to_server() [127.0.0.1]:10061 [timeout:60, connection timeout:3]
      zabbix_sender [337103]: DEBUG: In zbx_connect_to_server() [127.0.0.1]:10051 [timeout:60, connection timeout:3]
      zabbix_sender [337102]: DEBUG: In is_ip4() ip:'127.0.0.1'
      zabbix_sender [337103]: DEBUG: In is_ip4() ip:'127.0.0.1'
      zabbix_sender [337102]: DEBUG: End of is_ip4():SUCCEED
      zabbix_sender [337103]: DEBUG: End of is_ip4():SUCCEED
      zabbix_sender [337103]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000027"}]
      Response from "127.0.0.1:10051": "processed: 1; failed: 0; total: 1; seconds spent: 0.000027"
      zabbix_sender [337102]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000104"}]
      Response from "127.0.0.1:10061": "processed: 1; failed: 0; total: 1; seconds spent: 0.000104"
      sent: 1; skipped: 0; total: 1
      

      while sender 6.4 hangs:

      # /zab/bin/6.4/zabbix_sender -V
      zabbix_sender (Zabbix) 6.4.3rc1
      Revision {ZABBIX_REVISION} 25 April 2023, compilation time: May 11 2023 16:13:51
      
      
      # /zab/bin/6.4/zabbix_sender -c /zab/bin/sender.conf -k test.item -o 123 -vv
      zabbix_sender [322602]: DEBUG: In zbx_connect_to_server() [127.0.0.1]:10061 [timeout:60, connection timeout:3]
      zabbix_sender [322603]: DEBUG: In zbx_connect_to_server() [127.0.0.1]:10051 [timeout:60, connection timeout:3]
      zabbix_sender [322602]: DEBUG: In zbx_is_ip4() ip:'127.0.0.1'
      zabbix_sender [322602]: DEBUG: End of zbx_is_ip4():SUCCEED
      zabbix_sender [322602]: DEBUG: answer [{"response":"success","info":"processed: 1; failed: 0; total: 1; seconds spent: 0.000027"}]
      Response from "127.0.0.1:10061": "processed: 1; failed: 0; total: 1; seconds spent: 0.000027"
      ... <hangs here and being killed with level -9 !!! from another session> ...
      Killed
      

      So, only one zabbix server actually received the value, which is very firs in the ServerActive list.

      Everything is compiled from current 6.2 and 6.4 sources.

      zabbix_sender v6.0 also works fine.

            andris Andris Mednis
            zalex_ua Oleksii Zagorskyi
            Team C
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: