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

Problems with user defined macros

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.0.0rc1
    • 1.9.8 (beta)
    • API (A), Frontend (F)
    • trunk, r24888

      Some problems found with user macros:

      1. host and template level macros:

      • some macros can disappear at their saving; how to repeat a problem:
        a. add two macros {$A} and {$B}
        b. remove macro {$A}
        c. add macro {$C} and save host or template
        d. only {$C} macro will be saved

      2. template level macros:

      • the distance between macros isn't enough (see a screenshot)

      3. the source code for template/host and global level macros is very different; it should be unified

      4. the validation order of macros isn't logical

      5. in API there aren't some checks

      • a check for duplicated macros

      6. error messages violates coding style; for example:
      frontends/php/api/classes/class.cusermacro.php:735, 738

        1. distance-between-macros.jpg
          distance-between-macros.jpg
          27 kB
        2. super-admin.jpg
          super-admin.jpg
          205 kB
        3. admin.jpg
          admin.jpg
          380 kB

            Unassigned Unassigned
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: