这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cmd/scollector/collectors/keepalived_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import (
"reflect"
"strings"

"bosun.org/_third_party/github.com/mjibson/snmp"

"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/snmp"
)

type VRRPInstanceEntry struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/scollector/collectors/snmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strconv"
"strings"

"bosun.org/_third_party/github.com/mjibson/snmp"
"bosun.org/cmd/scollector/conf"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/snmp"
)

var builtInSNMPs = map[string]func(cfg conf.SNMP){
Expand Down
2 changes: 1 addition & 1 deletion cmd/scollector/collectors/snmp_ciscobgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"strings"
"time"

"bosun.org/_third_party/github.com/mjibson/snmp"
"bosun.org/cmd/scollector/conf"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/snmp"
)

func SNMPCiscoBGP(cfg conf.SNMP) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package snmp
import (
"fmt"

"bosun.org/_third_party/github.com/mjibson/snmp/mib"
"bosun.org/snmp/mib"
)

// Get is a wrapper for SNMP.Get.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestCommunity(t *testing.T) {
ch <- test
}()
}
for _ = range communityTests {
for range communityTests {
test := <-ch
if (test.err == nil) != test.ok {
t.Errorf("%s invalid err: %s", test.str, test.err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"sync"

"bosun.org/_third_party/github.com/mjibson/snmp/asn1"
"bosun.org/snmp/asn1"
)

var mibDir = ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"bosun.org/_third_party/github.com/mjibson/snmp/asn1"
"bosun.org/snmp/asn1"
)

type LookupTest struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net"
"time"

"bosun.org/_third_party/github.com/mjibson/snmp/asn1"
"bosun.org/snmp/asn1"
)

// reserved binding values.
Expand Down
4 changes: 2 additions & 2 deletions _third_party/github.com/mjibson/snmp/walk.go → snmp/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"io"

"bosun.org/_third_party/github.com/mjibson/snmp/asn1"
"bosun.org/_third_party/github.com/mjibson/snmp/mib"
"bosun.org/snmp/asn1"
"bosun.org/snmp/mib"
)

// Walk is a wrapper for SNMP.Walk.
Expand Down