152 Commits

Author SHA1 Message Date
VictorRobellini
248c91ba50
Update README.md
Formatting
2022-03-04 18:17:22 -05:00
VictorRobellini
f5c5e8f486
Update README.md
Added Known Issues
2022-03-04 18:17:02 -05:00
VictorRobellini
bf0c3f1138
Merge pull request #50 from FreeWillyB/master
Added status_code numeric field
2022-03-04 18:14:45 -05:00
VictorRobellini
609bf7148a
Merge pull request #48 from amacado/fix/datasource-variable
fix error in variable $dataSource/{DS_INFLUXDB}
2022-03-04 18:13:04 -05:00
Will Blanton
438ea5d860 Added status_code to output to allow for more flexible formatting inside grafana, since it can only set thresholds by numeric values. New status codes are 0=online, 1=down, 2=unavailable. 2021-12-16 09:39:37 -05:00
Clemens Bastian
3c041417b4
fix error in variable $dataSource/{DS_INFLUXDB} 2021-12-09 02:27:17 +01:00
VictorRobellini
4b832342d9
Interface Widget
I updated the threshold and value mapping to apply to only the status column
2021-06-19 11:56:42 -04: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
VictorRobellini
2433e41eb5
Added to changelog 2021-05-19 15:29:28 -04:00
VictorRobellini
33cd4dbbb2
Major Performance Increase - Fixed incorrect DS
https://github.com/influxdata/influxdb/issues/9122

Found out that my subqueries were bogging down my DB.  I adjusted them as recommended in the above issue report.
There were also 2 widgets with hardcoded and incorrect datasources.
2021-05-19 15:26:22 -04:00
VictorRobellini
f254b34a85
Merge pull request #37 from wrightsonm/master
Gateways Grafana Tabs not working correctly when WAN has ipv4 and ipv6 enabled
2021-05-06 00:02:42 -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
Victor Robellini
028295ff98 Merge branch 'master' of github.com:VictorRobellini/pfSense-Dashboard 2021-05-02 14:07:02 -04:00
Victor Robellini
76c364474b updated queries. Hopefully this fixes the drift between the repo and my system 2021-05-02 14:06:42 -04:00
VictorRobellini
b24d8a90eb
Added blurb about plugins 2021-05-02 14:03:20 -04: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
VictorRobellini
aa1d03e6e4
Using merged interface and gateway script
No need to open multiple shells and PHP shells to pull in these values.  Just do it in one operation
2021-05-01 13:13:37 -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
Victor Robellini
5c82f0f59b Removed old screenshot 2021-04-27 14:38:43 -04:00
Victor Robellini
410550a7a4 Centered dnsbl feed list table 2021-04-27 14:34:51 -04:00
Victor Robellini
c6ff16a59d Updated Screenshot 2021-04-27 14:20:50 -04:00
VictorRobellini
5173e919b9
Spelling 2021-04-27 11:27:46 -04:00
VictorRobellini
12bfca2546
Added changelog summary
Reorganized a few things.
2021-04-27 11:16:32 -04:00
VictorRobellini
f0fb19b7dd
Added pfBlocker Details Panel
Now more pfBlocker stuff!
2021-04-27 11:01:35 -04:00
VictorRobellini
9fe2aab469
Added tags for pfBlocker logs
To be used in the pfBlocker Details panel
2021-04-27 10:57:23 -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
VictorRobellini
b28f66a537
Rearranged Gateway graphs
Updated gateway metrics to use new measurement tags/fields
2021-04-26 22:58: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
0ab0e1a63d
gateways update
Added note about dropping measurement
2021-04-26 22:49:50 -04:00
VictorRobellini
059b32f168
Update README.md 2021-04-26 21:53:43 -04:00
VictorRobellini
cb71f71507
telegraf_gateways.php
No longer using python.
2021-04-26 21:51:58 -04:00
VictorRobellini
0ffb2e1148
Merge pull request #36 from FreeWillyB/gateway_status
There's absolutely potential to include way too much data in the database.  If I had the time, I would look into retention policies and data rollup, but I do this for fun and don't have the time to spare to read up on influx.   I'll add the defaultgw and gwdesc back in when I get the time since it's specific to the gateway.   The ifdesc belongs on the main interface table and would be redundant here.  Sometimes I get too caught up in what I can collect and monitor.

Thanks
2021-04-26 20:58:51 -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
d5a2c48cbe Added screenshot of new GW monitor. 2021-04-26 15:51:08 -04:00
Will Blanton
a5eca2763c Reconfigured title to original name. 2021-04-26 15:14:30 -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