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

host.massRemove and macros parameter

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.3rc1, 2.1.0
    • 2.0.0
    • API (A)

      http://www.zabbix.com/documentation/2.0/manual/appendix/api/host/massremove
      I tried to delete macros from host by name, but it impossible because:
      api/classes/CHost.php line 2149
      if (isset($data['macros'])) {
      $result = API::UserMacro()->delete(zbx_toArray($data['macros']));
      if (!$result)

      { self::exception(); }

      }
      But API::UserMacro()->delete() must receive macrosid, not name of macros.

            Unassigned Unassigned
            gescheit gescheit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: