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

host.massRemove and macros parameter

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: