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

API: host.get() does not return interfaceid

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 2.0.0
    • Frontend (F)
    • None
    • DM environment

      Hi,
      I know the documentation about the API is not yet finished but I'm struggling about the interfaceid.

      Basically I need to get the interfaceid from a host to be able to add an trigger.
      The question is how.
      Regarding the current API doc I assume that you can retrieve the interfaceid of a given host with host.get()

      Unfortunatly the return construct does not contain this field.

      RETURN VALUE

      { 'status' => '1', 'maintenances' => [], 'lastaccess' => '0', 'ipmi_errors_from' => '0', 'hostid' => '200200000010084', 'ipmi_available' => '0', 'disable_until' => '0', 'proxy_hostid' => '0', 'error' => '', 'jmx_available' => '0', 'jmx_errors_from' => '0', 'snmp_error' => '', 'maintenance_from' => '0', 'snmp_disable_until' => '0', 'jmx_disable_until' => '0', 'ipmi_authtype' => '-1', 'available' => '0', 'ipmi_username' => '', 'jmx_error' => '', 'snmp_available' => '0', 'name' => 'Zabbix server', 'ipmi_error' => '', 'maintenanceid' => '0', 'host' => 'Zabbix server', 'errors_from' => '0', 'ipmi_password' => '', 'snmp_errors_from' => '0', 'ipmi_privilege' => '2', 'ipmi_disable_until' => '0', 'maintenance_type' => '0', 'maintenance_status' => '0' }

      ]

            Unassigned Unassigned
            marc.herren Marc Herren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: