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

API event.acknowledge don't validate required suppress_until parameter

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.4.13, 7.4.0beta1
    • API (A)
    • None

      Steps to reproduce:

      1. API Request on event.acknowledge for an active problem event
      {
          "eventids": [6811411],
          "action": 36,
          "message": 'Supressed by script'
      ) 

      Result:

      The shown "suppression" is missing in event_suppress database table. I don't know where the UI got this broken information.

       

      Expected:
      Documentation (https://www.zabbix.com/documentation/6.4/en/manual/api/reference/event/acknowledge) says parameter suppress_until is required if action contains suppressions. So I would expect that the api request fails if the parameter is missing.

      But I think there is also a GUI bug. It shouldn't show a inconsistent suppression.

        1. image-2024-04-12-22-19-25-604.png
          66 kB
          Marcel Jäpel
        2. image-2025-03-04-13-44-44-028.png
          104 kB
          Natalja Romancaka

            mkudlacz Michal Kudlacz
            marcel.japel Marcel Jäpel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: