Edited to just mention PHP version of script.
This commit is contained in:
parent
b5c0d47dce
commit
a25ddbc956
@ -1,14 +1,11 @@
|
|||||||
# Installing the Plugins
|
# 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!
|
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
|
# 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.
|
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_gateways
|
# telegraf_gateways.php
|
||||||
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.
|
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.
|
||||||
|
|
||||||
There is also now a "telegraf_gateways_status-3.7.py" which calls the "return_gateways_status_text" function from "/etc/inc/gwlb.inc". In addition to the loss, rtt, and rttsd included in the original plugin, this plugin 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.
|
|
||||||
|
|
||||||
To use this plugin, simply choose your preferred version and save it as "/usr/local/bin/telegraf_gateways.py" on your pfSense box.
|
|
||||||
|
|
||||||
## Python 2.7
|
## Python 2.7
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user