apache / apache/hertzbeat

snmp结果需要做值映射转换

Open
#3,384 10 comments 3 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Question

![Image](https://github.com/user-attachments/assets/43b6b7f0-7662-4a21-a272-ae2ae0914577)

![Image](https://github.com/user-attachments/assets/dfc17853-9e71-4429-80cd-e6e657037dae)

目前使用snmp获取的值,尤其是状态类的值,基本都以数字结果呈现。这样在展示时并不能很好的看到真实的状态。我也搜索过相关issue,目前并没有很好的解决办法。或许可以参考zabbix的实现逻辑,在模板中添加一个mapping配置项,在mapping中列举数字的映射关系,这样可以很好的展示想要的结果。

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating SNMP result handling and the template configuration path, then compare the proposed mapping behavior with existing Zabbix-related support. Done means a template can define numeric-to-label mappings and SNMP status values render accordingly, with coverage for the mapping behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.