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

Global macros are not displayed on the screen and Replaced / changed macros inside the host do not have their values saved

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • None
    • Frontend (F)
    • None
    • SO: CentOS Linux release 7.4.1708 (Core)
      KERNEL: 3.10.0-693.21.1.el7.x86_64 x86_64
      Machine: VM AWS

      ***************************************************************

      We have 2 problems

      ***************************************************************

      Problem 1-): Global macros are not displayed on the screen

      In the Zabbix database, we have 339 Global Macros:

      MariaDB [zabbix]> select * from globalmacro order by 1;
      -------------------------------------------------++----------------------------------

      globalmacroid macro value

      -------------------------------------------------++----------------------------------

      ...

      355 {$DBS_PRD_CONN_PWD} CONFIG_VALOR_NO_HOST
      356 {$DBS_PRD_CONN_USER} CONFIG_VALOR_NO_HOST

      -------------------------------------------------++----------------------------------
      339 rows in set (0.00 sec)

      MariaDB [zabbix]>

       

      But navigating in the frontend (interfae web) in: Administration -> General -> Macros, 

      only 333 Macros are shown on the screen.

      No button appears to open another page to see the other macros that are not appearing.

      See file "macros.docx" for more details. -> macros.docx

      What could be causing this?

      I still have more macros that need to be created.

      ***************************************************************

      Problem 2-): Replaced / changed macros inside the host do not have their values saved

      In the frontend (web interface) when I navigate in:
      Configuration -> Hosts -> Click on the name of a host -> Then click on Macros -> Inherited and host macros (to see host macros).
      The frontend loads all Macros. 

      No button appears to open another page to see the other macros that are not appearing.

      The frontend loads all macros and I edit 2 macros:


      ...

      Note that the macro "{$ URL_PRD_WGET1_SSL_SASC_NOME1}" below has not been changed:

      And finally click Update and in the sequence, if I click on "Host macros", and the message appears:

      What could be causing this?

      Queried the database, we see that only the 2 macros that were actually edited, are OK:

      MariaDB [zabbix]>
      MariaDB [zabbix]> select hostid, host from hosts where host='DVEN--SRV-PRD-dvsrv-ebs-bd';
      ----------------------------------+

      hostid host

      ----------------------------------+

      10283 DVEN--SRV-PRD-dvsrv-ebs-bd

      ----------------------------------+
      1 row in set (0.00 sec)

      MariaDB [zabbix]> select * from hostmacro where hostid=10283;
      ------------------+------------------------------

      hostmacroid hostid macro value

      ------------------+------------------------------

      1798 10283 {$SRV_PRD_IOWAIT_ATEN} 40
      1799 10283 {$SRV_PRD_IOWAIT_CRIT} 60

      ------------------+------------------------------
      2 rows in set (0.00 sec)

      MariaDB [zabbix]>

       

      So I removed the unwanted Macro, and clicked on Update, and went back to the Hosts screen:

      Then I repeated the steps:

       

      ...

      continue...

        1. image-2018-08-16-19-51-30-660.png
          17 kB
          Adriano Guilhermetti
        2. image-2018-08-16-19-51-55-923.png
          17 kB
          Adriano Guilhermetti
        3. image-2018-08-16-19-53-04-155.png
          19 kB
          Adriano Guilhermetti
        4. image-2018-08-16-19-55-43-607.png
          43 kB
          Adriano Guilhermetti
        5. image-2018-08-16-19-57-42-516.png
          44 kB
          Adriano Guilhermetti
        6. image-2018-08-16-19-57-49-891.png
          44 kB
          Adriano Guilhermetti
        7. image-2018-08-16-19-58-10-365.png
          41 kB
          Adriano Guilhermetti
        8. image-2018-08-16-19-59-47-295.png
          33 kB
          Adriano Guilhermetti
        9. image-2018-08-16-20-06-00-151.png
          34 kB
          Adriano Guilhermetti
        10. image-2018-08-16-20-06-14-492.png
          26 kB
          Adriano Guilhermetti
        11. image-2018-08-16-20-06-29-102.png
          26 kB
          Adriano Guilhermetti
        12. image-2018-08-16-20-07-17-308.png
          28 kB
          Adriano Guilhermetti
        13. image-2018-08-16-20-07-28-655.png
          43 kB
          Adriano Guilhermetti
        14. macros.docx
          796 kB
          Adriano Guilhermetti
        15. Screenshot_20181002_101835.png
          25 kB
          Edgars Melveris
        16. Screenshot_20181002_101902.png
          29 kB
          Edgars Melveris

            Unassigned Unassigned
            adguilhermetti Adriano Guilhermetti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: