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

API configuration import failed for trigger web.test.fail

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:
    • Environment:
      Ubuntu 18.04.1
      Apache 2.4.29
      PHP 7.2.10

      Description

      Steps to reproduce:

      Install python Zabbix API wrapper:

      ~# pip install pyzabbix

      Run the trivial script to import a simple template (both attached):

      ~# /tmp/zbx_test.py http://localhost/zabbix Admin zabbix /tmp/simple_web_template.xml

      Result:

      Get the following API error:{{}}
      pyzabbix.ZabbixAPIException: (u'Error -32602: Invalid params., Incorrect item key "web.test.fail[Main]" provided for trigger expression on "Template Web".', -32602)

      Expected:

      Successfull import.

      The same action via web interface is successfull (see attached screenshot).

        Attachments

        1. simple_web_template.xml
          3 kB
        2. web_import_success.png
          web_import_success.png
          22 kB
        3. zbx_test.py
          0.5 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Grechnev Max
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: