From 424bde2fa81c7dda6ed3e5aaadab139e50f853c7 Mon Sep 17 00:00:00 2001 From: Victor Robellini Date: Sun, 12 Apr 2020 10:13:16 -0400 Subject: [PATCH] Combined readmes in the plugin directory --- plugins/README.md | 25 +++++++++++++++++++++++++ plugins/telegraf_gateways.md | 18 ------------------ plugins/telegraf_netifinfo_plugin.md | 9 --------- 3 files changed, 25 insertions(+), 27 deletions(-) create mode 100644 plugins/README.md delete mode 100644 plugins/telegraf_gateways.md delete mode 100644 plugins/telegraf_netifinfo_plugin.md diff --git a/plugins/README.md b/plugins/README.md new file mode 100644 index 0000000..6601b21 --- /dev/null +++ b/plugins/README.md @@ -0,0 +1,25 @@ +# telegraf_gateways +Depending on how recent your pfSense install is, you may need to use the python 3.7 version of the plugin. If you are running 2.4.5, you probably want telegraf_gateways-3.7.py. They both output he same data in the same format. + +All I did was copy telegraf_gateways-3.7.py to /usr/local/bin and rename it to telegraf_gateways.py +Python 2.7 + +Does /usr/local/bin/python2.7 exist on your pfSense system? If so, use this telegraf_gateways-2.7.py +Python 3.7 + +Does /usr/local/bin/python3.7 exist on your pfSense system? If so, use this telegraf_gateways-3.7.py + +If you have both 2.7 and 3.7 on your system, use 3.7 + +Thanks to this thread, user bigjohns97 for following up and fastjack for the dev effort. + +# telegraf_netifinfo_plugin +#### This plugin is not in use on my system but it's still worth documenting. +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 diff --git a/plugins/telegraf_gateways.md b/plugins/telegraf_gateways.md deleted file mode 100644 index 300dda4..0000000 --- a/plugins/telegraf_gateways.md +++ /dev/null @@ -1,18 +0,0 @@ -Depending on how recent your pfSense install is, you may need to use the python 3.7 version of the plugin. -If you are running 2.4.5, you probably want telegraf_gateways-3.7.py. They both output he same data in the same format. - -All I did was copy telegraf_gateways-3.7.py to /usr/local/bin and rename it to telegraf_gateways.py - -### Python 2.7 -Does /usr/local/bin/python2.7 exist on your pfSense system? If so, use this -telegraf_gateways-2.7.py - -### Python 3.7 -Does /usr/local/bin/python3.7 exist on your pfSense system? If so, use this -telegraf_gateways-3.7.py - -If you have both 2.7 and 3.7 on your system, use 3.7 - -Thanks to [this thread](https://forum.netgate.com/topic/152132/grafana-dashboard-using-telegraf-with-additional-plugins/16), user [bigjohns97](https://forum.netgate.com/user/bigjohns97) for following up and [fastjack](https://gist.github.com/fastjack) for the dev effort. - - diff --git a/plugins/telegraf_netifinfo_plugin.md b/plugins/telegraf_netifinfo_plugin.md deleted file mode 100644 index d36b300..0000000 --- a/plugins/telegraf_netifinfo_plugin.md +++ /dev/null @@ -1,9 +0,0 @@ -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 -