Commit graph

62 commits

Author SHA1 Message Date
Matthias
fc03e423b6
Fix pfifgw script for packet loss tracking
Fixes #32
2023-01-26 22:57:06 +01:00
Brendan Smith
70d9e11d34
Minor fixes 2022-03-02 14:42:56 -06:00
Brendan Smith
453b960c46
Fix script for OPNsense 22.1.2 2022-03-02 13:47:43 -06:00
BSmithIO
112c08b610
Removed unused variables 2021-11-20 01:53:04 -06:00
BSmithIO
026bdd38ce
Update README.md 2021-11-20 01:44:37 -06:00
Brendan Smith
1a203bfd9d Merge branch 'master' of https://github.com/Bsmith101/OPNsense-Dashboard 2021-11-20 01:36:34 -06:00
Brendan Smith
0d9c7828d8 Removed unused variables 2021-11-20 01:36:28 -06:00
BSmithIO
a16c1e8797
Update README.md 2021-11-20 01:13:25 -06:00
BSmithIO
f34aa1ffab
Update README.md 2021-11-19 16:53:27 -06:00
Bsmith101
e0fabad253
Update README.md 2021-11-17 21:29:08 -06:00
Bsmith101
0c4b7d9a1b
Update README.md 2021-11-17 21:28:54 -06:00
Brendan Smith
d71174920f Initial changes to convert to OPNsense 2021-11-17 18:33:51 -06:00
Victor Robellini
a6fa2eca05 I added a bunch of checks to make sure no null values get passed to telegraf.
I'm sure there is a better way to do this, but I am not a php developer and it's Sunday.

Issue: https://github.com/VictorRobellini/pfSense-Dashboard/issues/39
Reporter: https://github.com/xppx99

Thanks for the heads up xppx99
2021-06-13 22:16:18 -04:00
mark
921d907937 correct copy paste 2021-05-05 21:21:20 +01:00
mark
6a0fb117e5 fixed tabs vs spaces 2021-05-05 21:18:43 +01:00
mark
2c916e6ad7 added fix to list of gateways. when ipv4 and ipv6 are enabled you need gateway_name as a primary key. changed grafana to group by gateway_name instead of interface. Not sure why there are so many changes having exported the json. perhaps i have a different version of grafana?
I only changed the gateway variable to:
SHOW TAG VALUES FROM "gateways" WITH KEY = "gateway_name" WHERE "host" =~ /^$Host$/

Changed group by on Gateway RTT and Gateway Loss charts to gateway_name

Added gateway_name to Gateway Summary.  Added interface to this list so both gateway_name and interface can be seen.

telegraf --test --config /usr/local/etc/telegraf.conf

before:
> gateways,host=fw.anson.lan,interface=igb0 defaultgw=1,delay=0,gwdescr="Interface WAN_DHCP Gateway",loss=100,monitor="192.168.0.1",source="192.168.0.30",status="down",stddev=0,substatus="highloss" 1620242074000000000
> gateways,host=fw.anson.lan,interface=igb0 defaultgw=0,delay=0,gwdescr="Interface WAN_DHCP6 Gateway",loss=0,monitor="",source="",status="",stddev=0,substatus="N/A" 1620242074000000000

The changes to the telegraf output can be seen below:
telegraf --test --config /usr/local/etc/telegraf.conf

after:
> gateways,gateway_name=WAN_DHCP,host=fw.anson.lan,interface=igb0 defaultgw=1,delay=0,gwdescr="Interface WAN_DHCP Gateway",loss=100,monitor="192.168.0.1",source="192.168.0.30",status="down",stddev=0,substatus="highloss" 1620242589000000000
> gateways,gateway_name=WAN_DHCP6,host=fw.anson.lan,interface=igb0 defaultgw=0,delay=0,gwdescr="Interface WAN_DHCP6 Gateway",loss=0,monitor="",source="",status="",stddev=0,substatus="N/A" 1620242589000000000
2021-05-05 21:14:05 +01:00
VictorRobellini
ba6309576b
Formatting
Missed a new line
2021-05-01 13:29:40 -04:00
VictorRobellini
3ad0b2d388
Formatting update 2021-05-01 13:29:10 -04:00
VictorRobellini
46a1674595
Documented telegraf_pfifgw.php 2021-05-01 13:27:01 -04:00
Victor Robellini
ddeddc4771 Cleaning up unised files 2021-05-01 13:15:13 -04:00
Victor Robellini
3b84373fe9 Moving old files 2021-05-01 13:11:43 -04:00
Victor Robellini
de44cc180a I messed up a commit and accidentally replaced the interface plugin with the gateway plugin.
I've since merged the two plugins since they are so similar.
2021-05-01 13:10:34 -04:00
VictorRobellini
993f6c7d91
variable scope
I have no idea how scope works in PHP but if I'm using it globally, I want to declare it.
2021-04-27 09:54:04 -04:00
VictorRobellini
c8103f175d
Some earlier versions of pfSense do not return substatus 2021-04-27 09:51:08 -04:00
VictorRobellini
697ae5f277
Fixed the default gw messup 2021-04-26 23:02:58 -04:00
Victor Robellini
ccdf0406ce Cleaning up old/unused plugins 2021-04-26 22:56:05 -04:00
VictorRobellini
307614db56
gateway update
Added more data and cleaned up tags and fields
2021-04-26 22:55:39 -04:00
Victor Robellini
e8fb064c69 Moved old plugins to Old 2021-04-26 22:53:50 -04:00
VictorRobellini
059b32f168
Update README.md 2021-04-26 21:53:43 -04:00
willblanton
a25ddbc956 Edited to just mention PHP version of script. 2021-04-26 19:42:21 -04:00
willblanton
b5c0d47dce Converted python script to run native in php 2021-04-26 19:30:24 -04:00
willblanton
1e53d260bb Converted python script to run native in php 2021-04-26 19:30:01 -04:00
Will Blanton
8377dc4678 Tweaeked README.md files and added blurb about using Filer to add and edit plugins. 2021-04-26 15:52:05 -04:00
Will Blanton
842db021cb Removed unnecessary datetime import 2021-04-22 15:02:28 -04:00
Will Blanton
e0a09d10bb Added newline to end of script. 2021-04-22 15:00:56 -04:00
Will Blanton
01fac80a2e Added functionality that returns the status of the gateways in addtion to loss/rtt/rttsd 2021-04-22 14:58:05 -04:00
VictorRobellini
0682803457
Update README.md
ipv6 note
2021-03-06 16:00:44 -05:00
Victor Robellini
408f43a99f Merge branch 'master' of github.com:VictorRobellini/pfSense-Dashboard 2021-03-06 15:51:10 -05:00
Victor Robellini
2257d6e8a0 Added ipv6 2021-03-06 15:50:54 -05:00
VictorRobellini
9470c4ea45
telegraf_unbound_lite.sh
Quick blurb
2021-03-06 15:25:14 -05:00
Victor Robellini
cd528a13b7 Changed measurement name 2021-03-06 15:16:21 -05:00
Victor Robellini
c05599ffc8 Only pull the unbound stats you care about 2021-03-06 15:10:18 -05:00
Victor Robellini
80963d9652 https://forum.netgate.com/topic/152132/grafana-dashboard-using-telegraf-with-additional-plugins/20
Thanks to @JohnKap the response times in the gateway plugin (3.7) now work.  The fix
would most likely work witht he 2.7 script as well, but I don't have time to test at the moment.
2020-04-16 10:53:55 -04:00
VictorRobellini
c4d6094e5a
Fixed markup again
I hate readmes
2020-04-12 10:16:36 -04:00
VictorRobellini
0db8230848
Fixed markup 2020-04-12 10:15:16 -04:00
Victor Robellini
424bde2fa8 Combined readmes in the plugin directory 2020-04-12 10:13:16 -04:00
VictorRobellini
a9fcd5eec7
Update telegraf_gateways.md
Added blurb about the people who helped.
2020-04-12 10:09:40 -04:00
Victor Robellini
e3f6c72278 Added a readme for the gateway plugin since there are 2 versions.
One for Python 2.7 and one for Python 3.7
2020-04-12 10:02:39 -04:00
Victor Robellini
ed0b51f7a4 Added updated python script
Luckily this person knows more python than me: https://gist.github.com/fastjack/a0feb792a9655da7aa3e2a7a1d9f812f
2020-04-12 01:42:28 -04:00
VictorRobellini
f6d7894343
Update telegraf_pfinterface.php
Missed a semicolon or two
2020-04-05 01:12:55 -04:00