Rename snmp plugin to snmp_legacy
This commit is contained in:
parent
26315bfbea
commit
4ce8dd5f9a
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
### Release Notes
|
### Release Notes
|
||||||
|
|
||||||
|
**Breaking Change** The SNMP plugin is being deprecated in it's current form.
|
||||||
|
There is a [new SNMP plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/snmp)
|
||||||
|
which fixes many of the issues and confusions
|
||||||
|
of it's predecessor. For users wanting to continue to use the deprecated SNMP
|
||||||
|
plugin, you will need to change your config file from `[[inputs.snmp]]` to
|
||||||
|
`[[inputs.snmp_legacy]]`. The configuration of the new SNMP plugin is _not_
|
||||||
|
backwards-compatible.
|
||||||
|
|
||||||
- Telegraf now supports being installed as an official windows service,
|
- Telegraf now supports being installed as an official windows service,
|
||||||
which can be installed via
|
which can be installed via
|
||||||
`> C:\Program Files\Telegraf\telegraf.exe --service install`
|
`> C:\Program Files\Telegraf\telegraf.exe --service install`
|
||||||
|
|
|
@ -1393,8 +1393,8 @@
|
||||||
# servers = ["http://localhost:8098"]
|
# servers = ["http://localhost:8098"]
|
||||||
|
|
||||||
|
|
||||||
# # Reads oids value from one or many snmp agents
|
# # DEPRECATED! PLEASE USE inputs.snmp INSTEAD.
|
||||||
# [[inputs.snmp]]
|
# [[inputs.snmp_legacy]]
|
||||||
# ## Use 'oids.txt' file to translate oids to names
|
# ## Use 'oids.txt' file to translate oids to names
|
||||||
# ## To generate 'oids.txt' you need to run:
|
# ## To generate 'oids.txt' you need to run:
|
||||||
# ## snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt
|
# ## snmptranslate -m all -Tz -On | sed -e 's/"//g' > /tmp/oids.txt
|
||||||
|
|
|
@ -61,7 +61,7 @@ import (
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/rethinkdb"
|
_ "github.com/influxdata/telegraf/plugins/inputs/rethinkdb"
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/riak"
|
_ "github.com/influxdata/telegraf/plugins/inputs/riak"
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/sensors"
|
_ "github.com/influxdata/telegraf/plugins/inputs/sensors"
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/snmp"
|
_ "github.com/influxdata/telegraf/plugins/inputs/snmp_legacy"
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/sqlserver"
|
_ "github.com/influxdata/telegraf/plugins/inputs/sqlserver"
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/statsd"
|
_ "github.com/influxdata/telegraf/plugins/inputs/statsd"
|
||||||
_ "github.com/influxdata/telegraf/plugins/inputs/sysstat"
|
_ "github.com/influxdata/telegraf/plugins/inputs/sysstat"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package snmp
|
package snmp_legacy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
@ -225,7 +225,7 @@ func (s *Snmp) SampleConfig() string {
|
||||||
|
|
||||||
// Description returns description of Zookeeper plugin
|
// Description returns description of Zookeeper plugin
|
||||||
func (s *Snmp) Description() string {
|
func (s *Snmp) Description() string {
|
||||||
return `Reads oids value from one or many snmp agents`
|
return `DEPRECATED! PLEASE USE inputs.snmp INSTEAD.`
|
||||||
}
|
}
|
||||||
|
|
||||||
func fillnode(parentNode Node, oid_name string, ids []string) {
|
func fillnode(parentNode Node, oid_name string, ids []string) {
|
||||||
|
@ -812,7 +812,7 @@ func (h *Host) HandleResponse(
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
inputs.Add("snmp", func() telegraf.Input {
|
inputs.Add("snmp_legacy", func() telegraf.Input {
|
||||||
return &Snmp{}
|
return &Snmp{}
|
||||||
})
|
})
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package snmp
|
package snmp_legacy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
Loading…
Reference in New Issue