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

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.4.0rc1
    • Frontend (F)

      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:

        1. Timeout.gif
          1.24 MB
          Sergejs Olonkins

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

              Created:
              Updated:
              Resolved: