InfluxDB 1.2.2 fails to ingest collectd-native data using [[collectd]]
Bug report
System info: [Include InfluxDB version, operating system name, and other relevant details] InfluxDB version: 1.2.2 (influxdb-1.2.2.x86_64) OS: RHEL7 Collectd version: collectd-5.5.0 (collectd-5.5.0-3.el7.x86_64) Steps to reproduce:
- Install Collectd and InfluxDB to the versions listed above.
- Enable
LoadPlugin networkin collectd with typical configurations to send to InfluxDB incollectd.conf:<Plugin network> <Server "localhost" "25826"> SecurityLevel "None" </Server> ReportStats true MaxPacketSize 1452 </Plugin> - Configure InfluxDB to receive data in Collectd format in
influxdb.conf:[[collectd]] enabled = true bind-address = ":25826" database = "collectd" retention-policy = "" typesdb = "/usr/share/collectd/types.db" security-level = "none" auth-file = "/etc/collectd/auth_file" batch-size = 5000 batch-pending = 10 batch-timeout = "10s" read-buffer = 0 - use
curl_xmlorsnmpplugins in collectd (possibly others)
Expected behavior: [What you expected to happen] InfluxDB stores data sent by Collectd in the specified table
Actual behavior: [What actually happened]
No data is stored, and the following error message is printed to /var/log/messages any time collectd sends data:
<timestamp> <hostname> influxd: [I] 2017-03-22T07:24:47Z Collectd parse error: invalid data service=collectd
Additional info: [Include gist of relevant config, logs, etc.] Downgrading to InfluxDB 1.1.1 resolves this issue and is not affected by the above bug.
I've seen this error with influxdb 1.2.2 and resolved it ... what did I do ... forget :(
Just out of curiosity, if you drop the "MaxPacketSize" down to 1400, does the problem go away?
Probably, it may be fixed by the same way as described in #8140 The file 'types.db' is missing in .deb package and it should be located manually at /usr/local/share/collectd It may be taken here: https://raw.githubusercontent.com/collectd/collectd/master/src/types.db
I had a similar issue on CentOS 7 with influxdb-1.5.2-1.x86_64. My 'types.db' existed and was accurate.
Downgrading to influxdb-1.1.1-1.x86_64 resolved this for me.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Please reopen if this issue is still important to you. Thank you for your contributions.