Advertisement
Guest User

Untitled

a guest
Sep 11th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. nano /etc/telegraf/telegraf.d/mySwitch.local.conf
  2. >>>>>
  3. # my database for this plugin
  4. [[outputs.influxdb]]
  5. database = "snmp"
  6. username = "myUser"
  7. password = "myPass"
  8.  
  9. [[inputs.snmp]]
  10. # device monitored by snmp
  11. agents = [ "mySwitch.local" ]
  12. # max 3 retries if timeout each time
  13. timeout = "5s"
  14. retries = 3
  15. version = 2
  16. # snmp community
  17. community = "MyCommunity"
  18.  
  19. # key level 2 in InfluxDB (included in agent_host)
  20. name = "mySwitch.local"
  21. # measurement for each key level 2
  22. [[inputs.snmp.field]]
  23. name = "CPU1minute_percent"
  24. oid = ".1.3.6.1.4.1.11863.6.4.1.1.1.1.3"
  25. [[inputs.snmp.field]]
  26. name = "Memory_percent"
  27. oid = ".1.3.6.1.4.1.11863.6.4.1.2.1.1.2"
  28. [[inputs.snmp.table]]
  29. name = "interface"
  30. oid = " IF-MIB::ifXTable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement