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

Bad error-{"code":-32500,"message":"Application error.","data":""} on import template

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.2.16
    • API (A)
    • None

      1. Got session id"

      curl -X POST -H "Content-Type: application/json-rpc" -d @$user.login http://$ZABBIX_IP/zabbix/api_jsonrpc.php

      2. Replace sessionid in template.xml
      3. Import template using api:

      curl -X POST -H "Content-Type: application/json-rpc" -d @$APIWORKDIR/configuration.import.json http://$ZABBIX_IP/zabbix/api_jsonrpc.php

      Got error feedback:

      {"jsonrpc":"2.0","error":{"code":-32500,"message":"Application error.","data":""},"id":2}

      attached the import json file and template xml for reference.

        1. configuration.import.json
          50 kB
          shawn ling
        2. zbx_export_templates.xml
          101 kB
          shawn ling

            Unassigned Unassigned
            sling shawn ling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: