Telegraf sending float field data, but influx shows '0'

I have a python script that I’ve been using for years (on older ubuntu systems) with telegraf (1.13.4) and influxdb (1.7.9). Fields sent from the older systems are still populating as expected (the actual value showing) but when data is sent from a newer system (Ubuntu 20, but still telegraf 1.13 sending to the same influxdb host) - the field values are all being reported as ‘0’

Running telegraf in ‘–test’ mode and specifying the input-filter to include my script and I see the correct values (>0) being gathered and (theoretically) sent to influx. I see no errors in either the telegraf log or the influx log. Any ideas what is happening, and how I can fix it?

show field keys from nodetool_status
name: nodetool_status
fieldKey fieldType


down float
joining float
leaving float
normal float
up float

Ubuntu 16 host (good):

select hostname,up,down,joinging,leaving,normal from nodetool_status where “cluster_name” = ‘LAB1’ and time >= now() - 10m limit 5
name: nodetool_status
tags: host=cdb.lab1
time hostname up down joinging leaving normal


2021-09-02T13:38:05Z cdb.lab1 6 0 0 6
2021-09-02T13:38:15Z cdb.lab1 6 0 0 6
2021-09-02T13:38:25Z cdb.lab1 6 0 0 6
2021-09-02T13:38:35Z cdb.lab1 6 0 0 6
2021-09-02T13:38:45Z cdb.lab1 6 0 0 6

Ubuntu 20 host(bad):

select hostname,up,down,joinging,leaving,normal from nodetool_status where “cluster_name” = ‘LAB2’ and time >= now() - 10m limit 5
name: nodetool_status
tags: host=cdb.lab2
time hostname up down joinging leaving normal


2021-09-02T13:31:09Z cdb.lab2 0 0 0 0
2021-09-02T13:31:19Z cdb.lab2 0 0 0 0
2021-09-02T13:31:29Z cdb.lab2 0 0 0 0
2021-09-02T13:31:39Z cdb.lab2 0 0 0 0
2021-09-02T13:31:49Z cdb.lab2 0 0 0 0

:~# telegraf --test --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --input-filter exec

nodetool_status,cluster=LAB2,hostname=cdb.lab2 down=0,joining=0,leaving=0,normal=6,up=6 1630590162000000000

Your command:

telegraf --test --config /etc/telegraf/telegraf.conf --config-directory

/etc/telegraf/telegraf.d --input-filter exec

Output:

nodetool_status,cluster=LAB2,hostname=cdb.lab2
down=0,joining=0,leaving=0,normal=6,up=6 1630590162000000000

That space (where my mail client has split the line) between “cdb.lab2” and
“down=0” doesn’t look good to me.

Antony.

No, that comment of mine is rubbish - the space is just the separator between
tags and fields.

Sorry.

Antony.