Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server no more available #10

Open
picoroma opened this issue Oct 29, 2020 · 7 comments
Open

Server no more available #10

picoroma opened this issue Oct 29, 2020 · 7 comments

Comments

@picoroma
Copy link

Hi!
During the last period, I observed that the Servers available for the test is changing continuously.
So, if you writhe the server ID into a NAGIOS\ICINGA command, in case this server will change - the command does not work anymore.
Is possible to select the best server automatically?
As you do, when you run the script manually?
THX

@loopway
Copy link

loopway commented Dec 28, 2020

I've had the same problem. Could solve it by updating speedtest-cli https://github.com/sivel/speedtest-cli to the latest version.

@loopway
Copy link

loopway commented Jan 18, 2021

Update: unfortunately it did not solve it completely, but it happens less often now (might be coincidental).

We don't seem to be the only ones experiencing this:

@mavoga
Copy link

mavoga commented Sep 14, 2021

By analyzing the official test webpage requests it seems JSON server list at https://www.speedtest.net/api/js/servers?engine=js&limit=10&https_functional=true is used instead of XML at www.speedtest.net/speedtest-servers(-static)?.php and c.speedtest.net/speedtest-servers(-static)?.php.
The JSON list contains pretty accurate results, identical to website, while XML usually doesn't.
A ping analysis is then performed on each server in order to determine which one has the least latency and to get further info (IP, capabilities).

@jonwitts
Copy link
Owner

I found that the speedtest-cli from sivel was getting less and less reliable too.

I have begun work on an updated plugin which uses the official binaries from Speedtest: https://www.speedtest.net/apps/cli

I have a version of this working at work; but I am not completely happy with how it runs. The speedtest-native branch of this repo has my code so far...

@mavoga
Copy link

mavoga commented Sep 15, 2021

Yes I had better to write on a sivel's pull request... the issue I'm experiencing is exactly the one you mentioned. Thanks, going to do that.

@borisv1979
Copy link

borisv1979 commented Dec 6, 2022

Just download version 1.3 of the script from https://github.com/iLem0n/nagios-speedtest/tree/0f0fd188a9ef0f37db71372ec3d6cd0784841c79 and use option for automatic server selection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@mavoga @jonwitts @loopway @borisv1979 @picoroma and others