From 46a16745956c54f496802acc2e028b215766e09c Mon Sep 17 00:00:00 2001 From: VictorRobellini <39597627+VictorRobellini@users.noreply.github.com> Date: Sat, 1 May 2021 13:27:01 -0400 Subject: [PATCH] Documented telegraf_pfifgw.php --- plugins/README.md | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/plugins/README.md b/plugins/README.md index f4b05ab..73496c7 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -1,11 +1,34 @@ # Installing the Plugins Perhaps the easiest method of installing these plugins is by utlizing the "Filer" plugin in pfSense. Simply type the entire file name (i.e. "/usr/local/bin/plugin_name") and paste the code into the window. Make sure to set the permissions to be "0755", as they default to "0644" which is NOT executable! -# telegraf_pfinterface.php -IP Address and subnet for IPv4 and IPv6 are collected. I don't have an ipv6 on the dashbaord because I don't use it. +# telegraf_pfifgw.php +#### Replaces: telegraf_pfinterface.php and telegraf_gateways.php +#### Replaces: telegraf_gateways.py scripts (2.7 & 3.7) + +This single script collects information for Interfaces and gateways. + +**Interfaces:** +* Interface name +* IP4 address +* IP4 subnet +* IP6 address +* IP6 subnet +* MAC address +* Friendly name +* Status (Online/Offline/Etc.) + +**Gateways:** +* Interface name +* Monitor IP +* Source IP +* Default gw (True/False) +* GW Description +* Delay +* Stddev +* Loss (%) +* Status (Online/Offline/etc.) +* Substatus (None/Packetloss/Latency/Etc.) -# telegraf_gateways.php -#### This replaces telegraf_gateways.py scripts (2.7 & 3.7) This has been modified from the original python version to a native PHP script. The new script calls the builtin "return_gateways_status_text" function from "/etc/inc/gwlb.inc". In addition to the loss, rtt, and rttsd included in the original plugin, the new version will also return the gateway IP, monitored IP, status, and substatus of the gateway. This eliminates the guess work of whether or not pfSense has marked this gateway as down. # telegraf_unbound_lite.sh