Commit Graph

81 Commits

Author SHA1 Message Date
Thomas Casteleyn d018363261
chore(snmp): Refactor SNMP translation and data-structures (#14830) 2024-02-21 08:55:01 -07:00
Paweł Żak ae7fbc5082
chore(linters): Replace 'fmt.Errorf' with 'errors.New' wherever possible (#14698) 2024-02-08 11:32:30 -06:00
Joshua Powers c90117eb53
docs(inputs.snmp): Clarify the deprecation of agent tag setting (#14622) 2024-01-25 06:31:00 -07:00
Andreas Deininger 5f5a56ed01
docs: Fix typos (#14376) 2024-01-05 22:34:02 +01:00
Thomas Casteleyn 2d8416cca9
feat(inputs.snmp): Hint to use source tag (#14111) 2023-11-13 07:08:55 -07:00
Paweł Żak 171dccb7d7
chore(tools): Bump golangci-lint from v1.54.2 to v1.55.0 (#14155) 2023-10-23 08:12:08 -06:00
Paweł Żak e2a510f157
chore: Fix linter findings for errorlint (part7) (#12772)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-03 10:11:54 +01:00
Thomas Casteleyn 6a2f6f301f
chore: eliminate unnecessary use of quoted strings in printf (#12722) 2023-02-23 06:49:36 -07:00
Thomas Casteleyn 25154e50fd
feat(inputs.snmp): convert enum values (#11872) 2022-11-28 08:01:18 -07:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
reimda 0dd99b2157
fix(inputs/snmp): switch new Reconnect method to be a value receiver (#11197) 2022-05-27 15:03:46 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Thomas Casteleyn 885444ab3e
fix(inputs/snmp): Reconnect TCP agents if needed (#11163) 2022-05-25 12:47:51 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
reimda 77040ef4e9
fix: Add option to select translator (#10802) 2022-03-17 21:43:46 -06:00
Thomas Casteleyn a4f6b27bd5
style: Add deprecation notices to plugin options (#10616) 2022-03-01 15:05:53 -07:00
Mya d18ff3407d
fix: ensure folders do not get loaded more than once (#10551) 2022-02-16 12:25:20 -07:00
Mya 1e81d98fdd
fix: panic due to no module (#10303) 2021-12-20 13:40:00 -07:00
Mya 7675ce6d19
refactor: snmp to use gosmi (#9518) 2021-11-30 15:47:50 -07:00
Paweł Żak 2a0c3059a1
fix: Linter fixes for plugins/inputs/s* (#10104)
Co-authored-by: Pawel Zak <Pawel Zak>
2021-11-18 09:04:52 -07:00
helotpl 56398237c4
feat: telegraf to merge tables with different indexes (#9241) 2021-09-28 15:24:08 -06:00
Mya b846c5069d
added a check for oid and name to prevent empty metrics (#9366) 2021-06-22 15:59:02 -05:00
Thomas Casteleyn 4b2e2c5263
Log snmpv3 auth failures (#8917) 2021-04-13 17:46:34 -04:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Thomas Casteleyn 66c639668c
Fix inputs.snmp init when no mibs installed (#9050) 2021-03-30 13:08:14 -06:00
Paweł Żak 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Thomas Casteleyn 47e12d1981
Support more snmpv3 authentication protocols (#8850) 2021-02-24 11:44:53 -07:00
Paweł Żak d9736d543f
Revive fixes - part 2 (#8835)
* Revive fixes regarding following set of rules:
[rule.if-return]
[rule.increment-decrement]
[rule.var-declaration]
[rule.package-comments]
[rule.receiver-naming]
[rule.unexported-return]
2021-02-16 18:19:50 -05:00
Johannes Deger 198bcc8f36
Expose v4/v6-only connection-schemes through GosnmpWrapper (#8804) 2021-02-10 09:28:37 -07:00
Dušan Pajin 9ee6e034fb
Input SNMP plugin - upgrade gosnmp library to version 1.29.0 (#8588) 2021-01-07 08:44:33 -07:00
Wiard van Rij 139498937a
Add support to convert snmp hex strings to integers (#8426) 2020-12-07 14:45:06 -07:00
Tuamas a7096c8128
Translate snmp field values (#8466) 2020-11-26 13:21:57 -05:00
Alexandru Tudori 01eaa202d9
Add agent host tag configuration option (#8082) 2020-10-08 11:43:28 -04:00
reimda 6f9c623986
Add ifname processor plugin (#7763) 2020-07-07 15:37:53 -06:00
Josh Soref 2c56d6de81
Fix spelling errors in comments and documentation (#7492) 2020-05-14 00:41:58 -07:00
Mark Drayton 1bb436e8a8
Fix string to int64 conversion for SNMP input (#7407) 2020-04-24 13:35:59 -07:00
Daniel Nelson 8d647c4ebf
Fix URL agent address form with udp in snmp input (#6899) 2020-01-14 16:26:44 -08:00
Daniel Nelson c325c94a96
Rewrite documentation for snmp input (#6802) 2019-12-30 11:33:32 -08:00
reimda cec1bdce90 Add snmp_trap input plugin (#6629) 2019-11-25 11:56:21 -08:00
Felix Maurer 378c570c06 Add support for SNMP over TCP (#5870) 2019-11-07 10:56:51 -08:00
Greg 817c9a69a9 Document and add support to input plugins for logging alias (#6357) 2019-09-23 15:39:50 -07:00
Daniel Nelson 0882479cbf
Add command logging to snmp input at debug level (#5474) 2019-02-25 11:04:34 -08:00
wegel 06d5501d92 Add IPSIpAddress syntax to ipaddr conversion in snmp plugin (#4471) 2018-07-30 13:31:23 -06:00
Patrick Hemmer 5ae2b02f5d Fix snmp overriding of auto-configured table fields (#4208)
Whenever the snmp plugin was configured with a table with automatic field
discovery, if one of those fields was explicitly overridden in the config and
the value of is_tag was changed, the field would be duplicated, once as a tag
& once as a field.

This change fixes the behavior so that if a field is explicitly configured,
automatic table field discovery doesn't touch it.
2018-05-29 19:03:37 -07:00
Matt 9ef902f4a1 Add snmp input option to strip non fixed length index suffixes (#4025) 2018-04-17 17:34:39 -07:00
Daniel Nelson d5bd426e0c
Fix snmp tools output parsing when they contain Windows eols (#3396) 2017-11-20 16:48:30 -08:00
Daniel Nelson a519abf13f Gather concurrently from snmp agents (#3365) 2017-10-25 15:28:55 -07:00
Patrick Hemmer 516dffa4c4 set default measurement name on snmp input (#2639) 2017-04-10 16:45:02 -07:00