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

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 4.0.2
    • API (A)
    • Ubuntu 18.04.1
      Apache 2.4.29
      PHP 7.2.10

      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).

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

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

              Created:
              Updated:
              Resolved: