# Openwrt data to Influxdb v2

**URL:** <https://community.influxdata.com/t/openwrt-data-to-influxdb-v2/28547>\
**Category:** Telegraf\
**Tags:** influxdb, telegraf, collectd\
**Created:** [February 10, 2023, 3:58pm UTC](https://community.influxdata.com/t/openwrt-data-to-influxdb-v2/28547 "2023-02-10T15:58:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chip](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@chip](https://community.influxdata.com/u/chip)\
**Post date:** [February 10, 2023, 3:58pm UTC](https://community.influxdata.com/t/openwrt-data-to-influxdb-v2/28547/1 "2023-02-10T15:58:21Z")

</div>

**Does anyone have a proper how to guide to get data from Openwrt to Influxdb v2?**

Most articles out there are in regards to older versions of Influxdb.

It used to be collectd → influxdb → Grafana.

Now I believe it is collectd → telegraf -\>influxdb → Grafana.

On the Openwrt Router I followed these steps.  
[https://blog.christophersmart.com/2019/09/09/monitoring-openwrt-with-collectd-influxdb-and-grafana/](https://blog.christophersmart.com/2019/09/09/monitoring-openwrt-with-collectd-influxdb-and-grafana/)

Telegraf won’t load it keeps failing…  
adding parser failed: open /usr/share/collectd/types.db: no such file or directory

This is my Telegraf config file right now.  
agent]  
interval = “10s”  
round\_interval = true  
metric\_batch\_size = 1000  
metric\_buffer\_limit = 10000  
collection\_jitter = “0s”  
flush\_interval = “10s”  
flush\_jitter = “0s”  
precision = “”  
hostname = “”  
omit\_hostname = false

[[inputs.socket\_listener]]  
service\_address = “udp://:25826”  
data\_format = “collectd”  
collectd\_auth\_file = “/etc/collectd/collectd.auth”  
collectd\_security\_level = “encrypt”  
collectd\_typesdb = [“/usr/share/collectd/types.db”]  
collectd\_parse\_multivalue = “split”

[inputs.socket\_listener.tags]  
bucket = “collectd”

[[outputs.influxdb\_v2]]  
urls = [“[http://IP:8086](http://IP:8086)”]  
token = “Token Key”  
organization = “Org ID”  
bucket = “collectd”

[outputs.influxdb\_v2.tagpass]  
bucket = [“collectd”]

**Where is the types.db file suppose to be copied to the Influxdb or telegraf docker?**

---

<div class="post-metadata">

**Author:** ![jpowers](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jpowers/32/8569_2.png) [@jpowers](https://community.influxdata.com/u/jpowers)\
**Post date:** [February 13, 2023, 2:12pm UTC](https://community.influxdata.com/t/openwrt-data-to-influxdb-v2/28547/2 "2023-02-13T14:12:08Z")

</div>

The `types.db` file is from collectd. [Here is an example](https://github.com/collectd/collectd/blob/main/src/types.db) in their GitHub repo. From that same blog author you linked to, [they have another article](https://blog.christophersmart.com/2019/09/08/setting-up-a-monitoring-host-with-prometheus-influxdb-and-grafana/) that explains downloading that file and moving it into the right place.

---

<div class="post-metadata">

**Author:** ![chip](https://avatars.discourse-cdn.com/v4/letter/c/5fc32e/32.png) [@chip](https://community.influxdata.com/u/chip)\
**Post date:** [February 14, 2023, 8:32pm UTC](https://community.influxdata.com/t/openwrt-data-to-influxdb-v2/28547/3 "2023-02-14T20:32:04Z")

</div>

Yep but the github example was failing as it was missing “stations”

So I got the copy directly from my openwrt device and got it downloaded to my telegraf setup.
