influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

Influxdb collectd not storing any data

Open AndrewErman opened this issue 9 years ago • 2 comments

Hello: I have set up InfluxDB with Grafana on one server (A) and collectd on other (B). The problem is that no data is stored into InfluxDB database.

System info: Centos 7 InfluxDB shell version: 1.1.0 CPU: 8 cores RAM: 4GB

tcpdump from server (A): 22:44:49.030485 IP 185.61.150.231.37897 > 91.237.99.219.25826: UDP, length 1319 22:44:59.030430 IP 185.61.150.231.37897 > 91.237.99.219.25826: UDP, length 1318 22:45:19.030395 IP 185.61.150.231.37897 > 91.237.99.219.25826: UDP, length 1327 22:45:29.030484 IP 185.61.150.231.37897 > 91.237.99.219.25826: UDP, length 1332

tcpdump from server (B) 00:44:48.299364 IP 185.61.150.231.37897 > konnor-webs.25826: UDP, length 1319 00:44:58.299325 IP 185.61.150.231.37897 > konnor-webs.25826: UDP, length 1318 00:45:18.299206 IP 185.61.150.231.37897 > konnor-webs.25826: UDP, length 1327 00:45:28.299365 IP 185.61.150.231.37897 > konnor-webs.25826: UDP, length 1332

Influxdb.conf: [[collectd]] enabled = true bind-address = ":25826" database = "collectd" retention-policy = "" typesdb = "/usr/share/collectd/types.db" batch-size = 5000 batch-pending = 10 batch-timeout = "10s" read-buffer = 0

Log of starting InfluxDB: Feb 19 00:58:20 konnor-webs influxd[6103]: [run] 2017/02/19 00:58:20 InfluxDB starting, version 1.1.0, branch master, commit 800da5732b91c816b0a097acf8887fa2af1efa1a Feb 19 00:58:20 konnor-webs influxd[6103]: [run] 2017/02/19 00:58:20 Go version go1.7.3, GOMAXPROCS set to 8 Feb 19 00:58:20 konnor-webs influxd[6103]: [run] 2017/02/19 00:58:20 Using configuration at: /etc/influxdb/influxdb.conf Feb 19 00:58:20 konnor-webs influxd[6103]: [store] 2017/02/19 00:58:20 Using data dir: /var/lib/influxdb/data Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00001.wal, size 43413 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00002.wal, size 1006425 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00003.wal, size 118251 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00004.wal, size 36605 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00005.wal, size 53902 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00006.wal, size 167921 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00007.wal, size 20186 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00008.wal, size 161687 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00009.wal, size 29231 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00010.wal, size 220941 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00011.wal, size 247796 Feb 19 00:58:20 konnor-webs influxd[6103]: [cacheloader] 2017/02/19 00:58:20 reading file /var/lib/influxdb/wal/_internal/monitor/1/_00012.wal, size 0 Feb 19 00:58:20 konnor-webs influxd[6103]: [shard] 2017/02/19 00:58:20 /var/lib/influxdb/data/_internal/monitor/1 database index loaded in 790.513µs Feb 19 00:58:20 konnor-webs influxd[6103]: [store] 2017/02/19 00:58:20 /var/lib/influxdb/data/_internal/monitor/1 opened in 179.394381ms Feb 19 00:58:20 konnor-webs influxd[6103]: [subscriber] 2017/02/19 00:58:20 opened service Feb 19 00:58:20 konnor-webs influxd[6103]: [monitor] 2017/02/19 00:58:20 Starting monitor system Feb 19 00:58:20 konnor-webs influxd[6103]: [monitor] 2017/02/19 00:58:20 'build' registered for diagnostics monitoring Feb 19 00:58:20 konnor-webs influxd[6103]: [monitor] 2017/02/19 00:58:20 'runtime' registered for diagnostics monitoring Feb 19 00:58:20 konnor-webs influxd[6103]: [monitor] 2017/02/19 00:58:20 'network' registered for diagnostics monitoring Feb 19 00:58:20 konnor-webs influxd[6103]: [monitor] 2017/02/19 00:58:20 'system' registered for diagnostics monitoring Feb 19 00:58:20 konnor-webs influxd[6103]: [shard-precreation] 2017/02/19 00:58:20 Starting precreation service with check interval of 10m0s, advance period of 30m0s Feb 19 00:58:20 konnor-webs influxd[6103]: [snapshot] 2017/02/19 00:58:20 Starting snapshot service Feb 19 00:58:20 konnor-webs influxd[6103]: [continuous_querier] 2017/02/19 00:58:20 Starting continuous query service Feb 19 00:58:20 konnor-webs influxd[6103]: [httpd] 2017/02/19 00:58:20 Starting HTTP service Feb 19 00:58:20 konnor-webs influxd[6103]: [httpd] 2017/02/19 00:58:20 Authentication enabled: false Feb 19 00:58:20 konnor-webs influxd[6103]: [httpd] 2017/02/19 00:58:20 Listening on HTTP: [::]:8086 Feb 19 00:58:20 konnor-webs influxd[6103]: [retention] 2017/02/19 00:58:20 Starting retention policy enforcement service with check interval of 30m0s Feb 19 00:58:20 konnor-webs influxd[6103]: [collectd] 2017/02/19 00:58:20 Starting collectd service Feb 19 00:58:20 konnor-webs influxd[6103]: [monitor] 2017/02/19 00:58:20 Storing statistics in database '_internal' retention policy 'monitor', at interval 10s Feb 19 00:58:20 konnor-webs influxd[6103]: [collectd] 2017/02/19 00:58:20 Loading /usr/share/collectd/types.db Feb 19 00:58:20 konnor-webs influxd[6103]: [collectd] 2017/02/19 00:58:20 Listening on UDP: [::]:25826 Feb 19 00:58:20 konnor-webs influxd[6103]: [run] 2017/02/19 00:58:20 Listening for signals

After this - no data is being logged from InfluxDB. Database collectd is empty.

Installing InfluxDB is not an option as it has an issue with types.db

Please assist.

AndrewErman avatar Feb 18 '17 23:02 AndrewErman

Please disregard this. The issue was caused by firewall

AndrewErman avatar Feb 19 '17 11:02 AndrewErman

Hi! I have the same problem, but I doesn't want to power off my iptables all the time, and -A INPUT -p udp -m udp --dport 25802 -j ACCEPT didn't help. How does you solved your issue with firewall?

sibilkov avatar Sep 18 '17 08:09 sibilkov