[zabbix] Add Linux: prefix support for Zabbix 6.2+ template item names#2967
[zabbix] Add Linux: prefix support for Zabbix 6.2+ template item names#2967shin25818 wants to merge 1 commit into
Conversation
Additional NoteWhile this PR adds support for the
A more robust solution might be to normalize item names by stripping the prefix normalized_name = item_name.split(': ', 1)[-1] if ': ' in item_name else item_name
if normalized_name in METRICS:This would handle all OS prefixes without needing to enumerate each one explicitly. |
|
This pull request has not been updated for more than 21 days. If there are no updates to this PR within 7 days, it will be closed. If you'd like to re-open this PR after it's been closed, you can start from the latest master branch or pull the latest changes into your branch and create a new pull request. |
|
This pull request was not updated after an additional 7 days of no activity. If you would like to continue work on this PR, please re-open this PR or create a fresh branch off of the latest master branch. |
Summary
Zabbix 6.2 (released July 2022) changed the naming convention of template
item names by adding prefixes such as "Linux: " to item names.
For example:
Load average (1m avg)Linux: Load average (1m avg)The current METRICS list only contains the old naming convention, causing
Metric Samples to remain at 0 for all users running Zabbix 6.2 or later.
Changes
Added
Linux:prefixed versions of existing metric mappings to supportZabbix 6.2+ while maintaining backward compatibility with older versions.
Testing
Verified with Zabbix 6.4.21 that all item names are now found in metric
mapping (previously logged as "Item name Linux: XXX not found in metric mapping").
Impact