Telegraf 1.16 and higher - error when starting

starting with version 1.16, the telegraf service crash with this error:

./usr/bin/telegraf --version
panic: strconv.ParseInt: parsing “Add”: invalid syntax
goroutine 1 [running]:
/go/pkg/mod/ +0xa18

And it seem to be affect on certain RedHat linux server. All of our Linux versions are same all across as well as the kernel built.

Any Idea what will cause this error?


Hi, found the issue,
the new version is doing extraction from the /etc/services file with the netdb.go.
int the service file their was a string ‘—‘ in the beginning of a line that make crash the GO function. Line removed and telegraf now functionnal.