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

Webhook action operation fails constantly

    XMLWordPrintable

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.4.7
    • None
    • Server (S)
    • None
    • Tested on two separate environments (and few diffrent scripts).
      First:
      Ubuntu docker appliance with MySQL database
      Second:
      OS: CentOS 8
      WWW: apache
      Database: MySQL

    Description

      Steps to reproduce:

      1. Create simple item with trigger
      2. Create webhook type action operation (Administration > Scripts > Create script) with simple Java script script e.g:
        1. try {
            var params = JSON.parse(value);  params.test_param_test = "_" + params.test_param;  Zabbix.log(3, JSON.stringify(params));
          } catch (error) {
            Zabbix.log(3, error);
          }
          Zabbix.log(3, "End of Script");
          
      1. Create action in Configuration > Actions and link created before trigger
      2. Wait for a problem

      Result:
      See screenshot name "Error.jpg"

      Action log result is failed - "cannot execute script (null)", but it's executed properly

      Expected:

      Action log should be "Successful"

       

      Attachments

        1. Action configuration.JPG
          Action configuration.JPG
          43 kB
        2. Action configuration-1.JPG
          Action configuration-1.JPG
          43 kB
        3. action operation configuration.JPG
          action operation configuration.JPG
          62 kB
        4. Error.JPG
          Error.JPG
          46 kB
        5. simple webhook scriptJPG.JPG
          simple webhook scriptJPG.JPG
          35 kB
        6. Zabbix server logs.JPG
          Zabbix server logs.JPG
          17 kB

        Activity

          People

            asincovs Antons Sincovs
            Godfather Mateusz Dampc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: