v2.0 - Bugfixes and dealing with API changes in Zabbix 5.4 such itemId no longer passed by Zabbix itself

This commit is contained in:
Mark Oudsen
2021-12-16 13:46:18 +01:00
parent b7e2062486
commit 27c1d64511
2 changed files with 52 additions and 70 deletions

View File

@@ -1,8 +1,20 @@
## Major rework announcement (2021/12/16)
I've decided to take v2.0 forward through a series of code rewrites to facilitate some requests and to start with the code separation for obtaining Graphs through stand-alone code.
Also looking at the "Zabbix Web Agenet" possibilities recently added to Zabbix 5.4 at the same time. Still no clue why Zabbix does not also move the Graph generation into such module and to provision an API on it ...
## Major changes to the code (2021/12/16)
A major change was required to deal with some API changes found in Zabbix 5.4.
- itemId is no longer passed by default by Zabbix. As a result the itemId is now picked up from the Trigger information (itemId from the first element in "functions").
- Some parameters moved under "params" in JSON.
- Care is taken about Some (unneccessry) warnings and index errors due to lack of testing of information available.
To upgrade from v1.x to v2.0 you only have to replace mailGraph.php. No changes made to other files in this release.
## Minor bugfixes to the code (2021/10/06)
Code improvements to prevent possible errors leading into a non-functional mailGraph ... (typical error within log or Zabbix: "json error").
Please inform me in case you have PHP related errors in your logs - this should no longer be the case with v1.31.
## mailGraph (v1.31)
## mailGraph (v2.0)
Zabbix Media module and scripts for sending e-mail alerts with graphs.
**Please use the Wiki for information on how to install, configure and use MailGraph in Zabbix**