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

SIGNL4 Media Type: Error in JSON Payload

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.0.23, 6.0.24, 6.0.25rc1, 6.4.8, 6.4.9, 6.4.10rc1, 7.0.0alpha7
    • Templates (T)
    • All platforms.

      Steps to reproduce:

      1. Send test alert using the SIGNL4 media type
      2. The JSON payload is not correct

      Result:

      Right now there is no issue because SIGNL4 can cope with the wrong format.

      I recommend fixing it to use the correct format to make sure future versions will still work.

      Expected:
      The fix applies to this file:

      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/media/signl4/media_signl4.yaml

      Line 114 should be changed from:

      response = request.post(endpoint, 'payload=' + payload);

      to:

      response = request.post(endpoint, payload);

      Attached please find the complete adapted file.

       

            zabbix.dev Zabbix Development Team
            rons4 Ronald Czachara
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: