Rewriting the script and making it for Zabbix 7.0 LTS - #226
Open
ableev wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewrite: split into modules, YAML config, Zabbix 7.0 support, tests
Modernizes the codebase after years of accumulated cruft.
zbxtg.pyinto azbxtg_lib/package (cli,directives,config,telegram_api,zabbix_web,zabbix_api,maps,utils).zbxtg.py/zbxtg_group.pyremain as thin entry points at the same path — no changes needed to existingAlertScriptsPathsetups beyond copying the newzbxtg_lib/folder alongside them.zbxtg_settings.yaml(seezbxtg_settings.example.yaml). Legacyzbxtg_settings.pyis still auto-detected as a deprecated fallback.chart3.php) — verified against current Zabbix source that the JSON-RPC API still can't render images as of 7.0. Dropped the legacy Zabbix 2.xperiod=URL param (current frontend only acceptsfrom/to); now targets Zabbix 4.0+, primarily 7.0. Added optionalzabbix_api.pywith Bearer-token support (6.4+) for future use.locationdirective checkedlattwice instead oflatandlon.requirements.txt: added PyYAML, bumped requests/PySocks, dropped unused requests-oauthlib.