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

API trigger functions don't work as expected

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.8.2, 1.8.3
    • Fix Version/s: 2.0.0
    • Component/s: API (A)
    • Labels:
      None
    • Environment:
      Zabbix 1.8.3
      PHP 5.2.11
      Mysql Server 5.1.41
      FreeBSD 8.0-RELEASE x64
      VMware EXSi

      Description

      The problem is that when pytaeshsya update trigger, first read its configuration through the function trigger.get. Then, when the function trigger.update pytaeshsya save the modified trigger that got through trigger.get, then you get an error.

      Reason: trigger.get returns a row for the conditions in view of

      {12 345}

      = 0, where 12 345 is the number of terms in the database. While trigger.update need normal form of the condition - human-readable (eg: template_windows: vfs.fs.size [c:, free]. Last (0)} <10).

      Mostly correspondence on this issue is reflected in the forum thread: http://www.zabbix.com/forum/showthread.php?t=19390
      ----------------------------------------------------
      ???? ???????? ??????????? ? ???, ??? ????? ???????? ???????? ???????, ??????? ??????????? ??? ???????????? ????? ??????? trigger.get. ?????, ????? ? ??????? trigger.update ???????? ????????? ?????????? ???????, ??????? ??????? ????? trigger.get, ?? ????????? ??????.

      ???????: trigger.get ?????????? ?????? ??? ??????? ?????

      {12345}

      =0, ??? 12345 ??? ????? ??????? ? . ? ?? ????? ??? trigger.update ????? ?????????? ????? ?????? ??????? - ??????????? ??? ????????(??????: template_windows:vfs.fs.size[c:,free].last(0)}<10).

      ????????? ????????? ?? ?????? ???????? ???????? ? ????? ??????: http://www.zabbix.com/forum/showthread.php?t=19390

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              gdgsoft Dmitrij Gavrilenko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: