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

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • 2.0.0
    • 1.8.2, 1.8.3
    • API (A)
    • None
    • Zabbix 1.8.3
      PHP 5.2.11
      Mysql Server 5.1.41
      FreeBSD 8.0-RELEASE x64
      VMware EXSi

      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

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

              Created:
              Updated:
              Resolved: