ExportXMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 7.0.29
    • Component/s: None
    • None

      Steps to reproduce:

      1. from zabbix_utils import ZabbixAPI
      2. setup variables for username, password and url or perhaps token
      3. call api.login(user=args.username, password=args.password) or similar for token, it works
      4. call api.host.get() and it fails.

      Result:

      If I test this with a Zabbix 6.0 server, it works. If I test it with a Zabbix 7.4 server, it also works. With 7.0, however, it fails. If I hand-craft the JSON, it works everywhere, so something seems to be rather messed up with the API if using the 7.0 LTS version.

        1. json-api-test.py
          0.6 kB
        2. local_passwords.py
          0.2 kB
        3. python-api-test.py
          3 kB

            Assignee:
            Piotr Wegrzyn
            Reporter:
            Roy Sigurd Karlsbakk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: