Skip to content

Commit

Permalink
fix(go.d/snmp): don't return error if no sysName (netdata#18970)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyam8 authored Nov 8, 2024
1 parent 2214928 commit ba4432b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/go/plugin/go.d/modules/snmp/collect_sys_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (s *SNMP) getSysInfo() (*sysInfo, error) {
}

si := &sysInfo{
name: "unknown",
organization: "Unknown",
}

Expand Down Expand Up @@ -67,10 +68,6 @@ func (s *SNMP) getSysInfo() (*sysInfo, error) {
}
}

if si.name == "" {
return nil, errors.New("no system name")
}

return si, nil
}

Expand Down

0 comments on commit ba4432b

Please sign in to comment.