Ad Widget

Collapse

ZBX_TCP_READ() timed out: timeout while waiting for data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dicko
    Junior Member
    • Dec 2021
    • 8

    #1

    ZBX_TCP_READ() timed out: timeout while waiting for data

    I created two items for a host to measure the size of two directories (including subdirectories):
    vfs.dir.size[c:\path\to\dir1]
    vfs.dir.size[c:\path\to\dir2]


    The directories are about 4 and 20 GB respectively.
    In the configuration file I set the timeout to 30 seconds.

    The first item works as expected.

    From the agent log file, it seems as though the second item also functions as expected:
    Code:
    ...
    2564:20220105:111137.666 Requested [vfs.dir.size[c:\path\to\dir2]]
    2564:20220105:111137.667 In zbx_execute_threaded_metric() key:'vfs.dir.size'
    3444:20220105:111137.668 executing in data thread for key:'vfs.dir.size'
    13932:20220105:111138.300 In send_buffer() host:'1.2.3.4' port:10051 entries:0/100
    13932:20220105:111138.301 End of send_buffer():SUCCEED
    6804:20220105:111138.318 In collect_perfstat()
    6804:20220105:111138.322 End of collect_perfstat()
    13932:20220105:111139.302 In send_buffer() host:'1.2.3.4' port:10051 entries:0/100
    13932:20220105:111139.303 End of send_buffer():SUCCEED
    ...
    6804:20220105:111151.393 In collect_perfstat()
    6804:20220105:111151.397 End of collect_perfstat()
    2564:20220105:111151.710 End of zbx_execute_threaded_metric():SYSINFO_SUCCEED ''
    2564:20220105:111151.711 Sending back [20965308530]
    13932:20220105:111152.340 In send_buffer() host:'1.2.3.4' port:10051 entries:0/100
    13932:20220105:111152.341 End of send_buffer():SUCCEED
    ...
    As seen in the log it takes 14 seconds to get the directory size and send the result. Well within the timeout of 30 seconds.
    So I would assume I should get a result also for the second item, but I get this:
    Name Key Type Status Info
    dir1 vfs.dir.size[c:\path\to\dir1] Zabbix Agent Enabled
    dir2 vfs.dir.size[c:\path\to\dir2] zabbix Agent Not supported Timeout while waiting for data
    Also when trying to test on the agent...
    Code:
    zabbix_agentd -t vfs.dir.size[c:\path\to\dir2]
    ...after only 3 seconds or so I get the timeout error.

    What am I missing?
  • Glencoe
    Zabbix developer
    • Oct 2019
    • 152

    #2
    Probably you have increased Timeout parameter in zabbix_agentd.conf but haven't in zabbix_server.conf. The former limits time for check execution where as the latter is the wait time from the server side.

    Comment


    • Dicko
      Dicko commented
      Editing a comment
      Thanks for your suggestion. I will try setting this.
      But when testing on the agent I get the same error. How is that possible?
Working...