You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
按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
},
The text was updated successfully, but these errors were encountered: