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

template.get returning wrong properties

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.0.0
    • API (A)
    • None

      Steps to reproduce:

      1. curl --insecure -sS -H "Content-Type: application/json-rpc "  -d ' {   "auth": "TOKEN",   "id": 1,   "jsonrpc": "2.0",   "method": "template.get",   "params": [] }

        ' http://192.168.1.17/api_jsonrpc.php.

      2. wil return
         [ .... {     "proxyid": "0",     "host": "Website by Browser",     "status": "3",     "ipmi_authtype": "-1",     "ipmi_privilege": "2",     "ipmi_username": "",     "ipmi_password": "",     "maintenanceid": "0",     "maintenance_status": "0",     "maintenance_type": "0",     "maintenance_from": "0",     "name": "Website by Browser",     "flags": "0",     "templateid": "10628",     "description": "The template to monitor a website's availability and performance on the website by Browser.\r\n\r\nZabbix server uses a web browser to perform navigation and collect performance metrics.\r\n\r\nGenerated by official Zabbix template tool \"Templator\"",     "tls_connect": "1",     "tls_accept": "1",     "tls_issuer": "",     "tls_subject": "",     "tls_psk_identity": "",     "tls_psk": "",     "custom_interfaces": "0",     "uuid": "2526dce71d714e31bd545e96370c67b2",     "vendor_name": "Zabbix",     "vendor_version": "7.0-0",     "proxy_groupid": "0",     "monitored_by": "0"   }

        ]

      3. plenty of columns not belonging to the template (owned by the host object)

      Expected:
      just the columns belonging to a template

            zabbix.dev Zabbix Development Team
            gustavo.guido@custos.uy Gustavo Guido
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: