[ZBX-14738] Global macros are not displayed on the screen and Replaced / changed macros inside the host do not have their values saved Created: 2018 Aug 17 Updated: 2018 Oct 04 Resolved: 2018 Oct 04 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Incident report | Priority: | Critical |
Reporter: | Adriano Guilhermetti | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
SO: CentOS Linux release 7.4.1708 (Core) |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Description |
*************************************************************** 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;
--------------- ...
--------------- 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: 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 * from hostmacro where hostid=10283;
-------------
------------- 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... |
Comments |
Comment by Adriano Guilhermetti [ 2018 Aug 17 ] |
continuing ... Then I repeated the steps: The message reappears again.
|
Comment by Adriano Guilhermetti [ 2018 Aug 17 ] |
I forgot to inform you: Zabbix version 3.4.8 |
Comment by Adriano Guilhermetti [ 2018 Aug 31 ] |
Hello Sirs, |
Comment by Edgars Melveris [ 2018 Sep 27 ] |
Hello Adriano! |
Comment by Adriano Guilhermetti [ 2018 Oct 01 ] |
Hello Edgar ... Was there any fix in this part of MACRO from version 3.4.8 to 3.4.14? Please can you tell me where are / these two log files (zabbix and webserver) for me to check? Unfortunately we can not upgrade at this time because we have several Proxys installed on the clients and we will not be able to update them. The Zabbix Proxy version has to be the same as ZabbixServer, correct? Thank You. Adriano |
Comment by Edgars Melveris [ 2018 Oct 02 ] |
Hello Adriano. |
Comment by Edgars Melveris [ 2018 Oct 02 ] |
Sorry Adriano, I tried to reproduce the error on version 3.4.8 and it works here: Global macros: Host Macros with some values changed: So I'm closing this issue as not reproducible. This is probably some configuration issue. You're welcome to reopen the issue if you can add some steps, how to reproduce the bug. I would recommend trying to retest this on a clean install. |
Comment by Adriano Guilhermetti [ 2018 Oct 03 ] |
I reopened this ISSUE for 2 reasons: ************************************************** "Problem 2-): Replaced / changed macros inside the host do not have their values saved"
************************************************** In the / var / log / httpd / error_log file find the following messages: [Wed Oct 03 11: 46: 59.663765 2018] [: error] [pid 9186] [client 192.168.107.174:59366] PHP Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://192.168.110.62/zabbix/hosts.php Then I edited the file /etc/php.ini and set the "max_input_vars" parameter, because it was commented. I configured it with the value "2048" -> max_input_vars = 2048 The error / problem has not occurred any more. Thank you. Adriano |
Comment by Edgars Melveris [ 2018 Oct 04 ] |
Hello Adriano, glad you have the problem solved. Closing issue |