Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nano /etc/telegraf/telegraf.d/mySwitch.local.conf
- >>>>>
- # my database for this plugin
- [[outputs.influxdb]]
- database = "snmp"
- username = "myUser"
- password = "myPass"
- [[inputs.snmp]]
- # device monitored by snmp
- agents = [ "mySwitch.local" ]
- # max 3 retries if timeout each time
- timeout = "5s"
- retries = 3
- version = 2
- # snmp community
- community = "MyCommunity"
- # key level 2 in InfluxDB (included in agent_host)
- name = "mySwitch.local"
- # measurement for each key level 2
- [[inputs.snmp.field]]
- name = "CPU1minute_percent"
- oid = ".1.3.6.1.4.1.11863.6.4.1.1.1.1.3"
- [[inputs.snmp.field]]
- name = "Memory_percent"
- oid = ".1.3.6.1.4.1.11863.6.4.1.2.1.1.2"
- [[inputs.snmp.table]]
- name = "interface"
- oid = " IF-MIB::ifXTable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement