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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Won't fix
    • Affects Version/s: 2.2.16
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:
      None
    • Environment:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: