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

Webhook action operation fails constantly

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.4.7
    • 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

      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"

       

        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

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

              Created:
              Updated: