OPNsense-Dashboard/plugins
VictorRobellini 0db8230848
Fixed markup
2020-04-12 10:15:16 -04:00
..
README.md Fixed markup 2020-04-12 10:15:16 -04:00
telegraf_gateways-2.7.py Added a readme for the gateway plugin since there are 2 versions. 2020-04-12 10:02:39 -04:00
telegraf_gateways-3.7.py Added updated python script 2020-04-12 01:42:28 -04:00
telegraf_netifinfo_plugin Initial setup 2020-04-02 01:09:24 -04:00
telegraf_netifinfo_plugin.go forgot to add the telegraf_gateways.py script 2020-04-04 18:57:41 -04:00
telegraf_pfinterface.php Update telegraf_pfinterface.php 2020-04-05 01:12:55 -04:00
telegraf_temperature.sh forgot to add the telegraf_gateways.py script 2020-04-04 18:57:41 -04:00
telegraf_unbound.sh forgot to add the telegraf_gateways.py script 2020-04-04 18:57:41 -04:00

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 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