- OPNsense 21.1.8_1-amd64
- os-telegraf (installed) 1.11.0
- Telegraf 1.19.0
- VLAN_15: 192.168.15.0/24
- Ubuntu 20.04.2 LTS
- InfluxDB 2.0.7 (git: 2a45f0c037) build_date: 2021-06-04T19:17:40Z
I am not certain how this is supposed to work, but I do not receive any data from OPNsense to my InfluxDB (??). There is nothing showing on the Boards section of InfluxDB, "No Results", using the default "System" dashboard and the correct bucket. Using the "Explore" section of InfluxDB, there is no data- even when enabling "View Raw Data". I do not know what I have done wrong. Can someone help me?
Output
- Enable Influx v2 Output: checked
- Influx v2 URL: http://192.168.15.10:8086/api/v2/telegrafs/07da8386caf81000
- Influx v2 Token: II4dVNinSKLxllAPQ2AoU18Gf3XY23sTmKM0rAXsH8FqFmHT3YQ-jyxPnslaT7rq-4HMW-mUVpmmug5WpS0bvQ==
- Influx v2 Organization: help
- Influx v2 Bucket: test
The
Input section is default. I have then on the
General tab enabled the Telegraf Agent. I have saved all these settings, and I've also tried to restart the Telegraf service. Both the Quiet and Debug Log have been enabled.
Using
netstat
on the host machine (192.168.15.10), I can see a tcp connection from the firewall on port:8086, but no data has been sent/received. The installation of InfluxDB is done following this guide: https://docs.influxdata.com/influxdb/v2.0/install/?t=Linux on an Ubuntu 20.04 machine.
I have double, triple and quadrupled checked that the bucket is correct, the Token is correct and the Organization name is correct (which has been altered in this forum post).
The most common error I've found in the OPNsense Telegraf Log File is
2021-07-20T12:22:50 E! [outputs.influxdb_v2] Failed to write metric (will be dropped: 404 Not Found): not found: path not found
However, when I change a setting / hit Save in the Input section of Telegraf, I get these errors:
2021-07-20T12:29:00 I! Starting Telegraf 1.19.0
time="2021-07-20T14:29:00+02:00" level=error msg="failed to open. Ignored. open /.cache/snowflake/ocsp_response_cache.json: no such file or directory\n" func="gosnowflake.(*defaultLogger).Errorf" file="log.go:120"
time="2021-07-20T14:29:00+02:00" level=error msg="failed to create cache directory. /.cache/snowflake, err: mkdir /.cache: permission denied. ignored\n" func="gosnowflake.(*defaultLogger).Errorf" file="log.go:120"
Are those errors related to why nothing is happening on my InfluxDB v2 instance? I have tried to remove the plugin, install the plugin and even rebooted the firewall.
The firewall (192.168.15.1) is able to ping the machine hosting InfluxDB, from the VLAN15 interface (Source Address) - there are no funky firewall rules either. ..
What have I done wrong?
What I had done wrong, was that I was thrown off of the Setup Instructions provided by InfluxDB.
Omitting /api/v2/... etc. worked, so this is the correct syntax:
- Influx v2 URL: http://192.168.15.10:8086