set default measurement name on snmp input (#2639)

This commit is contained in:
Patrick Hemmer
2017-04-10 19:45:02 -04:00
committed by Daniel Nelson
parent 62b5c1f7e7
commit 516dffa4c4
2 changed files with 2 additions and 0 deletions

View File

@@ -314,6 +314,7 @@ func Errorf(err error, msg string, format ...interface{}) error {
func init() {
inputs.Add("snmp", func() telegraf.Input {
return &Snmp{
Name: "snmp",
Retries: 3,
MaxRepetitions: 10,
Timeout: internal.Duration{Duration: 5 * time.Second},