Added Troubleshooting Section

Needed to consolidate the troubleshooting tips in one place.
This commit is contained in:
VictorRobellini 2020-04-11 15:34:32 -04:00 committed by GitHub
parent de5b45ff9b
commit 4e9e97a808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,11 @@
![Screenshot](Grafana-pfSense.png) ![Screenshot](Grafana-pfSense.png)
## Running on
Grafana 6.7.1
Influxdb 1.7.10
## Configuration ## Configuration
### Grafana ### Grafana
@ -44,20 +49,69 @@ I also included the config for Unbound DNS and it's commented out. I'm not curr
I put all my plugins in /usr/local/bin and set them to 555 I put all my plugins in /usr/local/bin and set them to 555
To troubleshoot plugins, add the following lines to the agent block in /usr/local/etc/telegraf.conf and send a HUP to the telegraf pid.
I also included a wrapper script for Unbound DNS. I'm not currently using it, but it's fully functional.
## Troubleshooting
### Telegraf Plugins
To troubleshoot plugins, add the following lines to the agent block in /usr/local/etc/telegraf.conf and send a HUP to the telegraf pid. You're going to need to do this from a ssh shell. One you update the config you are going to need to tell telegraf to read the new configs. If you restart telegraf from pfSense, this will not work since it will overwrite your changes.
#### Telegraf Config
debug = true debug = true
quiet = false quiet = false
logfile = "/var/log/telegraf/telegraf.log" logfile = "/var/log/telegraf/telegraf.log"
#### Restarting Telegraf
# ps -aux | grep -i telegraf
# kill -HUP <pid of telegraf proces>
I also included a wrapper script for Unbound DNS. I'm not currently using it, but it's fully functional. ### InfluxDB
When in doubt, run a few queries to see if the data you are looking for is being populated.
### Running on bash-4.4# influx
Connected to http://localhost:8086 version 1.7.10
InfluxDB shell version: 1.7.10
> show databases
name: databases
name
----
pfsense
_internal
> use pfsense
Using database pfsense
> show measurements
name: measurements
name
----
cpu
disk
diskio
dnsbl_log
gateways
interface
ip_block_log
mem
net
pf
processes
swap
system
temperature
> select * from system limit 20
name: system
time host load1 load15 load5 n_cpus n_users uptime uptime_format
---- ---- ----- ------ ----- ------ ------- ------ -------------
1585272640000000000 pfSense.home 0.0615234375 0.07861328125 0.0791015625 4 1 196870 2 days, 6:41
1585272650000000000 pfSense.home 0.05126953125 0.07763671875 0.076171875 4 1 196880 2 days, 6:41
1585272660000000000 pfSense.home 0.04296875 0.07666015625 0.0732421875 4 1 196890 2 days, 6:41
1585272670000000000 pfSense.home 0.03564453125 0.07568359375 0.0703125 4 1 196900 2 days, 6:41
1585272680000000000 pfSense.home 0.02978515625 0.07470703125 0.0673828125 4 1 196910 2 days, 6:41
1585272690000000000 pfSense.home 0.02490234375 0.07373046875 0.064453125 4 1 196920 2 days, 6:42
...
Grafana 6.7.1 ## [Original Reddit thread](https://www.reddit.com/r/PFSENSE/comments/fsss8r/additional_grafana_dashboard/ "Originial Reddit thread")
Influxdb 1.7.10
[Original Reddit thread](https://www.reddit.com/r/PFSENSE/comments/fsss8r/additional_grafana_dashboard/ "Originial Reddit thread")
I was going to post this in the thread made by [/u/seb6596](https://www.reddit.com/u/seb6596 "/u/seb6596") since this is based on [their dashboard](https://www.reddit.com/r/PFSENSE/comments/fsf7f7/my_pfsense_monitor_dashboard_in_grafana/ "their dashboard"), but I made quite a few changes and wanted to include information that would get lost in the thread. I was going to post this in the thread made by [/u/seb6596](https://www.reddit.com/u/seb6596 "/u/seb6596") since this is based on [their dashboard](https://www.reddit.com/r/PFSENSE/comments/fsf7f7/my_pfsense_monitor_dashboard_in_grafana/ "their dashboard"), but I made quite a few changes and wanted to include information that would get lost in the thread.