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

switch_legacy插件流量获取异常 #140

Closed
Larawei opened this issue Aug 3, 2022 · 2 comments
Closed

switch_legacy插件流量获取异常 #140

Larawei opened this issue Aug 3, 2022 · 2 comments

Comments

@Larawei
Copy link

Larawei commented Aug 3, 2022

Relevant config.toml

默认

Logs from categraf

18:01:24 switch_legacy_if_speed agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 0
18:01:24 switch_legacy_if_in agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 0
18:01:24 switch_legacy_if_out agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 0

-----------------------同一个配置文件----------------

18:03:31 switch_legacy_if_speed agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 200000000000
18:03:31 switch_legacy_if_in agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 8.16581315792e+10
18:03:31 switch_legacy_if_in_speed_percent agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 40.8290657896
18:03:31 switch_legacy_if_out agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 1.978573437232e+11
18:03:31 switch_legacy_if_out_speed_percent agent_hostname=VM-4-15-ubuntu ifname=Eth-Trunk66 ip=switch001.sz 98.9286718616

System info

ubuntu

Docker

No response

Steps to reproduce

...

Expected behavior

持续有数值获取

Actual behavior

会突然获得数值为0

Additional info

image

时而正常,时而为0。

交换机型号 华为CE6820

swcollector 发现类似issus gaochao1/swcollector#81

@UlricQin
Copy link
Contributor

UlricQin commented Aug 3, 2022

如果snmpwalk就是walk两次值相同,那作为采集器,是无能为力的

@Larawei
Copy link
Author

Larawei commented Aug 5, 2022

将采集间隔增加后不再重现

@Larawei Larawei closed this as completed Aug 5, 2022
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