From 8ddcba6b55d4f8e2e06f4273988bbbfdab32c814 Mon Sep 17 00:00:00 2001 From: Victor Robellini Date: Thu, 2 Apr 2020 01:45:33 -0400 Subject: [PATCH] Added file with details aroung the telegraf_netifinfo_plugin plugin build --- plugins/telegraf_netifinfo_plugin.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 plugins/telegraf_netifinfo_plugin.md diff --git a/plugins/telegraf_netifinfo_plugin.md b/plugins/telegraf_netifinfo_plugin.md new file mode 100644 index 0000000..d36b300 --- /dev/null +++ b/plugins/telegraf_netifinfo_plugin.md @@ -0,0 +1,9 @@ +I found a plugin to get IP, MAC, IF Name and Status. [On this thread](https://github.com/influxdata/telegraf/issues/3756#issuecomment-485606025 "On this thread") a user posts some go code for a telegraf plugin. I fired up a FreeBSD 11 ami on amazon, installed go and compiled a binary version of the code. It's worked as expected but my queries and formatting could use some help. + +I saved the code as telegraf_netifinfo_plugin.go and compiled with the following commands: + + setenv CGO_ENABLED 0 + setenv GOOS freebsd + setenv GOARCH amd64 + go build -o telegraf_netifinfo_plugin +