Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

流量计数器数据过大 出现数据为nil问题 #53

Open
peng19940915 opened this issue Jun 6, 2018 · 2 comments
Open

流量计数器数据过大 出现数据为nil问题 #53

peng19940915 opened this issue Jun 6, 2018 · 2 comments

Comments

@peng19940915
Copy link

监控思科设备时有如下报错:
image
查找源码将出现问题的oid找了出来,试着用snmpwalk命令采集了下接口计数器的数据,数据为:7501318007234174061`
但当修改源码“packet.go” 将rawValue.BERVariable打印出来发现为unknown
image
打印出来的结果:
image

不过使用snmpwalk模式就不会出现该问题。使用gosnmp就会有如上的报错。

@freedomkk-qfeng
Copy link
Collaborator

目测是 gosnmp 库的 bug。下个版本我会把 gosnmp 升级到上游最新的版本,在测试。

@peng19940915
Copy link
Author

好的,期待中~~~,对了,还有两个问题:

  • 接口计数器翻转未处理,即使是64位计数器也会出现翻转的
  • 接口index有时会变化,比如华为的设备,所以建议metric将index这个tag剔除

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants