Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3672

template.get selectMacros not returning macros

    XMLWordPrintable

Details

    • Change Request
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.2.3
    • None
    • API (A)
    • None
    • Ubuntu 16

    Description

      template.get isn't returning macros when selectMacros = true.
      An empty array is returned instead.

      Template 10329 dump with selectMacros = true:
      [{u'available': u'0',
        u'description': u'',
        u'disable_until': u'0',
        u'error': u'',
        u'errors_from': u'0',
        u'flags': u'0',
        u'host': u'Template_Cassandra',
        u'ipmi_authtype': u'0',
        u'ipmi_available': u'0',
        u'ipmi_disable_until': u'0',
        u'ipmi_error': u'',
        u'ipmi_errors_from': u'0',
        u'ipmi_password': u'',
        u'ipmi_privilege': u'2',
        u'ipmi_username': u'',
        u'jmx_available': u'0',
        u'jmx_disable_until': u'0',
        u'jmx_error': u'',
        u'jmx_errors_from': u'0',
        u'lastaccess': u'0',
        u'macros': [],
        u'maintenance_from': u'0',
        u'maintenance_status': u'0',
        u'maintenance_type': u'0',
        u'maintenanceid': u'0',
        u'name': u'Template_Cassandra',
        u'proxy_hostid': u'0',
        u'snmp_available': u'0',
        u'snmp_disable_until': u'0',
        u'snmp_error': u'',
        u'snmp_errors_from': u'0',
        u'status': u'3',
        u'templateid': u'10329',
        u'tls_accept': u'1',
        u'tls_connect': u'1',
        u'tls_issuer': u'',
        u'tls_psk': u'',
        u'tls_psk_identity': u'',
        u'tls_subject': u''}]
      Macros for this template from usermacro.get for templateid 10329:
      [{u'hostid': u'10370',
        u'hostmacroid': u'147',
        u'macro': u'{$TEST}',
        u'value': u'sdf'}]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dangelovich David Angelovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: