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

Wrong timeout used when executing test option for a webhook media type

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.4.0rc1
    • Fix Version/s: None
    • Component/s: Frontend (F)

      Description

      Problem description: When using the "Test" option for a Webhook media type, the connection timeout value that is used during test execution is always 3 seconds and is not equal to the timeout defined in the media type itself. In this case, if the actual execution of the script takes longer than 3 seconds, the user will not be able to test the media type using this option, even if the Timeout defined in the media type is large enough for the script to complete during actual execution.

      Steps to reproduce:

      1. Create a webhook media type
      2. For this media type specify a script that executes longer than 3 seconds and "Timeout" parameter value larger than the execution time of the script.
      3. In Administration => Media types execute the Test media type option for the just created media type.

      Testing the media type has timed with the following error message out even though the actual execution of the script would've been successful:

      Connection timeout of 3 seconds exceeded when connecting to Zabbix server "localhost".
      

      Expected: The timeout of media type test for webhook media types should be equal to the value defined in the media type itself.

      Example:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              zabbix.dev Zabbix Development Team
              Reporter:
              solonkins Sergejs Olonkins
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: