Hi, I use telegraf and so far everything was running well, but after the last update the ping plugin stopped working:
First I got this error after upgrading from 1.17.0-1 to 1.17.1-1:
This lead to the service constantly restarting and occured with method=“exec” regardless of the other parameters. It also occured with only urls = [“example.org”] enabled for the ping plugin.
Then I wanted to switch to the method=“native” as an alternative, because it’s supposed to have better performance. After adding the capability using sysctl I checked the process has the capability using:
getpcaps $(ps -A | grep telegraf | cut -d ' ' -f 1)
Capabilities for `22518': = cap_net_raw+i
The database entries only contain result_code 2 and the url/ip. Using --debug there is no additional output:
I have the same problem after upgrading to 1.17.1 - also in Docker on UnRAID:
2021-01-29T03:01:47Z I! Starting Telegraf 1.17.1
2021-01-29T03:01:47Z I! Using config file: /etc/telegraf/telegraf.conf
2021-01-29T03:01:47Z I! Loaded inputs: cpu disk diskio exec (13x) internal kernel mem net ping processes smart swap system
2021-01-29T03:01:47Z I! Loaded aggregators:
2021-01-29T03:01:47Z I! Loaded processors:
2021-01-29T03:01:47Z I! Loaded outputs: influxdb
2021-01-29T03:01:47Z I! Tags enabled: host=NAS
2021-01-29T03:01:47Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"NAS", Flush Interval:10s
2021-01-29T03:01:47Z W! [inputs.smart] nvme not found: verify that nvme is installed and it is in your PATH (or specified in config) to gather vendor specific attributes: provided path does not exist: []
panic: runtime error: invalid memory address or nil pointer dereference
Like @Vulco_Viljoen, I’ve reverted to 1.16.3 and it’s working again.