VictorRobellini / pfSense-Dashboard

A functional and useful dashboard for pfSense that utilizes influxdb, grafana and telegraf
645 stars 174 forks source link

No data in influxdbv2 (pfsense+) #61

Open everything-tech-related opened 2 years ago

everything-tech-related commented 2 years ago

[[outputs.influxdb_v2]] urls = ["http://192.168.0.202:8086"] token = "yz7sVfFnH4_8fIrdnniQFVBnNYg1Yxcng5l-aNaSsD9hBC1yYH4j0shbZvuw_f10wxB2AJk5ffi9SsWcmlYbpA==" organization = "cato" bucket = "pfsense"

[[inputs.exec]] commands = [ "/usr/local/bin/telegraf_pfifgw.php", "sh /usr/local/bin/telegraf_temperature.sh" ] data_format = "influx"

[[inputs.tail]] files = ["/var/log/pfblockerng/dnsbl.log"] data_format = "grok" from_beginning = false name_suffix = "_dnsbl_log" grok_timezone = "Local" grok_patterns = ["^%{WORD:blocktype}-%{WORD:blocksubtype},%{SYSLOGTIMESTAMP:timestamp:ts-syslog},%{IPORHOST:domain},%{IPORHOST:src_ip:tag},%{GREEDYDATA:req_agent},%{WORD:blockmethod},%{WORD:blocklist:tag},%{IPORHOST:tld:tag},%{WORD:feed_name:tag},%{GREEDYDATA:duplicateeventstatus}"]

[[inputs.tail]] files = ["/var/log/pfblockerng/ip_block.log"] data_format = "grok" from_beginning = false name_suffix = "_ip_block_log" grok_timezone = "Local" grok_patterns = ["^%{SYSLOGTIMESTAMP:timestamp:ts-syslog},%{NUMBER:rulenum},%{DATA:interface},%{WORD:friendlyname},%{WORD:action},%{NUMBER:ip_version},%{NUMBER:protocolid},%{DATA:protocol:tag},%{IPORHOST:src_ip:tag},%{IPORHOST:dest_ip:tag},%{WORD:src_port:tag},%{NUMBER:dest_port:tag},%{WORD:direction},%{WORD:geoip_code:tag},%{DATA:ip_alias_name},%{DATA:ip_evaluated},%{DATA:feed_name:tag},%{HOSTNAME:resolvedhostname},%{GREEDYDATA:clienthostname},%{GREEDYDATA:ASN},%{GREEDYDATA:duplicateeventstatus}"]

[[inputs.unbound]]

server = "127.0.0.1:953"

binary = "/usr/local/bin/telegraf_unbound.sh"

psinflux

everything-tech-related commented 2 years ago

infl

SpreeZ00 commented 7 months ago

The pfSense GUI does not support InfluxDB v2 at the moment, as far as I know. I just enabled Telegraf in the GUI and then went to edit the telegraf.conf directly at /usr/local/telegraf.conf. There I added:

[[outputs.influxdb_v2]]
urls = ["http://example.influxdb.com:8086"]/
token = "GET_A_TOKEN_FROM_YOUR_INFLUXDB_SERVER"
organization = "YOUR_ORG_NAME"
bucket = "YOUR_PFSENSE_BUCKET"

That worked for me. But for using the dashboard yeah well you have to update everything to Flux Queries.

avillalba96 commented 4 months ago

The pfSense GUI does not support InfluxDB v2 at the moment, as far as I know. I just enabled Telegraf in the GUI and then went to edit the telegraf.conf directly at /usr/local/telegraf.conf. There I added:

[[outputs.influxdb_v2]]
urls = ["http://example.influxdb.com:8086"]/
token = "GET_A_TOKEN_FROM_YOUR_INFLUXDB_SERVER"
organization = "YOUR_ORG_NAME"
bucket = "YOUR_PFSENSE_BUCKET"

That worked for me. But for using the dashboard yeah well you have to update everything to Flux Queries.

Is there a dashboard version for querys flux?

idem2lyon commented 6 days ago

I can't have any data in my dashboard. Is there a dashboard version for querys flux for pfsense with package telegraf ?