influxdb icon indicating copy to clipboard operation
influxdb copied to clipboard

InfluxDB 1.2.2 fails to ingest collectd-native data using [[collectd]]

Open Here-Be-Dragons opened this issue 9 years ago • 5 comments

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:

  1. Install Collectd and InfluxDB to the versions listed above.
  2. Enable LoadPlugin network in collectd with typical configurations to send to InfluxDB in collectd.conf:
    <Plugin network>
       <Server "localhost" "25826">
         SecurityLevel "None"
      </Server>
      ReportStats true
      MaxPacketSize 1452
    </Plugin>
    
  3. 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
    
  4. use curl_xml or snmp plugins 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.

Here-Be-Dragons avatar Mar 22 '17 14:03 Here-Be-Dragons

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?

eighteen14k avatar May 01 '17 04:05 eighteen14k

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

kozhevn avatar May 31 '17 21:05 kozhevn

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.

ghost avatar Jul 17 '18 17:07 ghost

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.

stale[bot] avatar Jul 24 '19 03:07 stale[bot]

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.

stale[bot] avatar Jul 31 '19 04:07 stale[bot]