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

Simple checks timeout misbehaviour

XMLWordPrintable

    • Sprint 106 (Nov 2023)
    • 0.125

      Steps to reproduce:

      1. Using simple check (`net.tcp.service[ssh]`) to test SSH port, from default templates, suddenly starts to fail when updating to Alpha7

      Result:

      SSH appears down and no data seems to be evaluated on the check while looking at DEBUG
      Expected:
      No changes in behaviour SSH should appear UP.

      While doing further investigation I recompiled zabbix server with the line:

              if (SUCCEED == (ret = zbx_tcp_connect(&s, sysinfo_get_config_source_ip(), host, port, 5, 
                             ZBX_TCP_SEC_UNENCRYPTED, NULL, NULL))) 
             {
      
      >> src/libs/zbxsysinfo/simple/simple.c at check_ssh()
      

      Changing the last parameter "timeout" to a fixed value "5" , the check start works fine again.

      I could not further investigate if for some reason "get_rkey(request)" is fetching a wrong timeout value, but there is something not going with the resulting "timeout" variable passed to the check_ssh() function.

      I also double checked the global timeouts changing the value for simple check there without any effect.

      When I did the update, also the proxy is failing to do the same checks, so I suspect it is the same reason.

      Anyone able to test / investigate this?

            dgoloscapov Dmitrijs Goloscapovs
            spectroman jchegedus
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: