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

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Critical
    • None
    • Affects Version/s: None
    • Component/s: Frontend (F)
    • None
    • Environment:
      SO: CentOS Linux release 7.4.1708 (Core)
      Kernel: 3.10.0-693.21.1.el7.x86_64 x86_64
      Maquina: VM AWS
      Zabbix: 3.4.8

       

      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 I edit a macro

      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.nd 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]>

       

      I already removed Macro:

      And I updated with the click of the Update button:

      Then, we return to the Hosts screen:

      But even so, if I repeat the process / steps:

      The message reappears:

       

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

       

        1. image-2018-08-16-19-14-19-673.png
          20 kB
          Adriano Guilhermetti
        2. image-2018-08-16-19-15-09-577.png
          27 kB
          Adriano Guilhermetti
        3. image-2018-08-16-19-17-06-378.png
          17 kB
          Adriano Guilhermetti
        4. image-2018-08-16-19-18-30-215.png
          33 kB
          Adriano Guilhermetti
        5. image-2018-08-16-19-22-54-774.png
          42 kB
          Adriano Guilhermetti
        6. image-2018-08-16-19-23-47-881.png
          42 kB
          Adriano Guilhermetti
        7. image-2018-08-16-19-24-56-855.png
          77 kB
          Adriano Guilhermetti
        8. image-2018-08-16-19-25-38-669.png
          40 kB
          Adriano Guilhermetti
        9. image-2018-08-16-19-28-57-992.png
          36 kB
          Adriano Guilhermetti
        10. image-2018-08-16-19-36-54-644.png
          44 kB
          Adriano Guilhermetti
        11. image-2018-08-16-19-37-32-340.png
          44 kB
          Adriano Guilhermetti
        12. image-2018-08-16-19-37-54-562.png
          41 kB
          Adriano Guilhermetti
        13. image-2018-08-16-19-38-52-313.png
          41 kB
          Adriano Guilhermetti
        14. image-2018-08-16-19-40-00-405.png
          33 kB
          Adriano Guilhermetti
        15. image-2018-08-16-19-40-24-903.png
          34 kB
          Adriano Guilhermetti
        16. image-2018-08-16-19-40-57-182.png
          26 kB
          Adriano Guilhermetti
        17. image-2018-08-16-19-41-17-383.png
          26 kB
          Adriano Guilhermetti
        18. image-2018-08-16-19-41-34-522.png
          28 kB
          Adriano Guilhermetti
        19. image-2018-08-16-19-42-07-511.png
          43 kB
          Adriano Guilhermetti
        20. macros.docx
          796 kB
          Adriano Guilhermetti

            Assignee:
            Unassigned
            Reporter:
            Adriano Guilhermetti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: