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

按WIKI配置了SNMP实例IP地址,但启动后检测不到目标交换机存活,自己读取本机的SNMP #85

Open
Hmm-zhang opened this issue Feb 24, 2021 · 0 comments

Comments

@Hmm-zhang
Copy link

按WIKI配置了SNMP实例IP地址,但启动后检测不到目标交换机存活,自己读取本机的SNMP(10.0.0.111是运行swcollector的服务器),是哪里配置有问题吗?
[root@Nightingale swcollector]# ./control tail
2021/02/24 16:45:37 cfg.go:165: read config file: cfg.json successfully
2021/02/24 16:45:37 http.go:68: listening :1989
2021/02/24 16:45:37 swifstat.go:166: UpdateIfStats start. The number of concurrent limited to 1000. IP addresses number is 1
2021/02/24 16:45:37 swifstat.go:168: get snmp message by gosnmp
2021/02/24 16:45:42 ifstat.go:459: 10.0.0.111 1.3.6.1.2.1.31.1.1.1.6 Error reading from UDP: read udp 10.0.0.111:53137->10.0.0.111:161: read: connection refused

2021/02/24 16:45:42 ifstat.go:459: 10.0.0.111 1.3.6.1.2.1.31.1.1.1.10 Error reading from UDP: read udp 10.0.0.111:45188->10.0.0.111:161: read: connection refused

2021/02/24 16:45:42 ifstat.go:459: 10.0.0.111 1.3.6.1.2.1.31.1.1.1.1 Error reading from UDP: read udp 10.0.0.111:56487->10.0.0.111:161: read: connection refused

2021/02/24 16:45:42 ifstat.go:459: 10.0.0.111 1.3.6.1.2.1.31.1.1.1.15 Error reading from UDP: read udp 10.0.0.111:39244->10.0.0.111:161: read: connection refused

2021/02/24 16:45:42 swifstat.go:422: UpdateIfStats complete. Process time 5.526424147s. Number of active ip is 1
2021/02/24 16:45:43 swcpu.go:43: Error reading from UDP: read udp 10.0.0.111:37192->10.0.0.111:161: read: connection refused

2021/02/24 16:45:43 swmem.go:43: Error reading from UDP: read udp 10.0.0.111:47339->10.0.0.111:161: read: connection refused

配置如下:
{
"debug": false,
"debugmetric":{
"endpoints":["endpoint-vpn"],
"metrics":["AnyconnectSession","ConnectionStat"],
"tags":""
},
"switch":{
"enabled": true,
"ipRange":[
"10.0.252.31"
],
"gosnmp":true,
"index_tag":false,
"pingTimeout":5000,
"pingRetry":4,
"community":"public",
"snmpTimeout":1000,
"snmpRetry":5,
"ignoreIface": ["Nu","NU","Vlan","Vl"],
"ignoreOperStatus": true,
"speedlimit":0,
"ignorePkt": true,
"pktlimit": 0,
"ignoreBroadcastPkt": true,
"broadcastPktlimit": 0,
"ignoreMulticastPkt": true,
"multicastPktlimit": 0,
"ignoreDiscards": true,
"discardsPktlimit": 0,
"ignoreErrors": true,
"errorsPktlimit": 0,
"ignoreUnknownProtos":true,
"unknownProtosPktlimit": 0,
"ignoreOutQLen":true,
"outQLenPktlimit": 0,
"fastPingMode": true,
"limitConcur": 1000,
"limitCon": 4
},

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

1 participant