Speedtest

I have dug into this and tried running /usr/libexec/netdata/plugins.d/charts.d.plugin

I get the following error

/usr/libexec/netdata/plugins.d/../charts.d/speedtest.chart.sh: line 46: *8/1000: syntax error: operand expected (error token is "*8/1000")
2023-11-05 18:36:30: charts.d: FATAL: main: No charts to collect data from.

Maybe there is an issue with my install or the installer for this plugin after an update?
Im on the latest rasberry pi os fyi and the latest stable netdata.

I have even run the following sudo -u netdata speedtest --accept-license and then ran the above command again and get the following errors.

 charts.d: INFO: main: started from '/usr/libexec/netdata/pl                                                  ugins.d/charts.d.plugin' with options:
2023-11-05 18:40:24: charts.d: INFO: main: Configuration file '/usr/lib/netdata/                                                  conf.d/charts.d.conf' loaded.
/etc/netdata/charts.d.conf: line 1: speedtest: yes: command not found
2023-11-05 18:40:24: charts.d: ERROR: main: Config file '/etc/netdata/charts.d.c                                                  onf' loaded with errors.
2023-11-05 18:40:24: charts.d: INFO: example: is disabled. Add a line with examp                                                  le=force in '/etc/netdata/charts.d.conf' to enable it (or remove the line that d                                                  isables it).
2023-11-05 18:40:24: charts.d: INFO: sensors: is disabled. Add a line with senso                                                  rs=force in '/etc/netdata/charts.d.conf' to enable it (or remove the line that d                                                  isables it).
2023-11-05 18:40:24: charts.d: ERROR: ap: no devices found in AP mode, with 'iw                                                   dev'
2023-11-05 18:40:24: charts.d: ERROR: ap: module's 'ap' check() function reports                                                   failure.
2023-11-05 18:40:24: charts.d: WARNING: apcupsd: command 'apcaccess' is not foun                                                  d in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbi                                                  n:/usr/local/bin:/usr/local/sbin.
2023-11-05 18:40:24: charts.d: ERROR: apcupsd: module's 'apcupsd' check() functi                                                  on reports failure.
2023-11-05 18:40:25: charts.d: WARNING: libreswan: command 'ipsec' is not found                                                   in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:                                                  /usr/local/bin:/usr/local/sbin.
2023-11-05 18:40:25: charts.d: ERROR: libreswan: module's 'libreswan' check() fu                                                  nction reports failure.
2023-11-05 18:40:25: charts.d: WARNING: nut: command 'upsc' is not found in /usr                                                  /local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/sbin:/usr/lo                                                  cal/bin:/usr/local/sbin.
2023-11-05 18:40:25: charts.d: ERROR: nut: module's 'nut' check() function repor                                                  ts failure.
2023-11-05 18:40:25: charts.d: WARNING: opensips: command 'opensipsctl' is not f                                                  ound in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin:/usr/                                                  sbin:/usr/local/bin:/usr/local/sbin.
2023-11-05 18:40:25: charts.d: ERROR: opensips: module's 'opensips' check() func                                                  tion reports failure.
[2023-11-05 18:40:28.570] [error] Error: [101] Network unreachable
CHART speedtest.download_speed '' 'Download Bandwidth' 'kilobits/s' 'speed' 'speedtest.download' area 150000 1800 '' '' 'speedtest'
DIMENSION speedtest.download_speed '' absolute 1 1
CHART speedtest.upload_speed '' 'Upload Bandwidth' 'kilobits/s' 'speed' 'speedtest.upload' area 150000 1800 '' '' 'speedtest'
DIMENSION speedtest.upload_speed '' absolute 1 1
CHART speedtest.packet_loss '' 'Packet Loss' 'packet loss %' 'loss' 'speedtest.packetloss' line 150000 1800 '' '' 'speedtest'
DIMENSION speedtest.packet_loss '' percentage-of-absolute-row 1 1
CHART speedtest.idle_latency '' 'Idle Latency' 'milliseconds' 'latency' 'speedtest.idle_latency' line 150000 1800 '' '' 'speedtest'
1 Like

Yeah I tried on Ubuntu. Still no go. Seems like others are experiencing the same thing? May be time to do a refresh of the tutorial??

Looks its time for an update to the speedtest collector, adding this to the TODO… will respond here once done. thanks for the patience folks!

Thank you so much Shyam. Please test on Ubuntu or Debian as well. Thank you

If you need a tester, please let me know. I’d be happy to help

Hello team!

I’m facing the same issue and errors than the rest of the users, how is the progress of the update for the speedtest configuration?

Thanks in advance!

Hello @nygagae and others.

Here are the updated steps to follow, could you please try this out and let me know if it works:

  1. Download the collector script from github
  2. Copy this to /usr/libexec/netdata/charts.d/ (or /opt/netdata/usr/libexec/netdata/charts.d if your Netdata installation resides in /opt/netdata)
  3. Download the collector configuration from github
  4. Copy this to /etc/netdata/charts.d (or /opt/netdata/etc/netdata/charts.d if your Netdata installation resides in /opt/netdata)
  5. Restart Netdata

Following these steps should fix the problem. Note that it might take a few minutes (hours) for the speedtest chart to be visualized properly depending on the collection interval that is set, the default interval is 30 minutes. This is because running speedtest more frequently (every second or every minute) would consume HUGE amounts of bandwidth unnecessarily.

1 Like

Hey Shyam.

I did all of this but the speedtest chart doesn’t show up under metrics.

All other metrics works fine so the agent is working.

I’ve made sure to accept the license - for both root and netdata user.

Speedtest-cli works fine on the command line.

Thank you!




Hi @imjonny can you confirm where Netdata is installed on your system by running:

whereis netdata

and that the speedtest.chart.sh is present

$ ls -lrt /opt/netdata/usr/libexec/netdata/charts.d/speedtest.chart.sh
-rw-r--r-- 1 root root 5420 Mar  6 16:42 /opt/netdata/usr/libexec/netdata/charts.d/speedtest.chart.sh

Hello, Shyam.

Thanks for the reply. This is what I see from my end:

This is the file I asked to confirm, your screenshot shows only speedtest.conf

hey, I am having the same issue (raspi 4):

whereis netdata
netdata: /usr/sbin/netdata /usr/lib/netdata /etc/netdata /usr/libexec/netdata /usr/share/netdata

ls -lrt /usr/libexec/netdata/charts.d/speedtest.chart.sh
-rw-r–r-- 1 root root 6439 Apr 25 05:48 /usr/libexec/netdata/charts.d/speedtest.chart.sh

I think I see the network activity at the intervals, but no metrics are shown anywhere I can see them.

I saw this file was wrong and I updated it manually:
root@xxx:/etc/netdata# cat charts.d.conf
enable_all_charts=“yes”

Previously it had something like “enable_speedtest=yes” (look at the quotes) and I was seeing “yes: command not found” in the logs

Thanks,
Julio.