internet speed
internet speed
How to check the internet speed ... am thinking to use the plugins check_internet_speed ... need help how to configure ith through the nagios gui ... i have added it to the plugins page (Manage Plugins)
Re: internet speed
[root@nagios ~]# /usr/local/nagios/libexec/check_internet_speed
UNOKNWN - Please pass all 4 paramateres /usr/local/nagios/libexec/check_internet_speed <download_warn> <download_crit> <upload_warn> <upload_crit>
[root@nagios ~]# /usr/local/nagios/libexec/check_internet_speed 5000 7000 500 55
UNKONW - could not find requirements: speedtest-cli or pyspeedtest
Download speedtest-cli https://github.com/sivel/speedtest-cli
Download: pyspeedtest https://github.com/fopina/pyspeedtest
UNOKNWN - Please pass all 4 paramateres /usr/local/nagios/libexec/check_internet_speed <download_warn> <download_crit> <upload_warn> <upload_crit>
[root@nagios ~]# /usr/local/nagios/libexec/check_internet_speed 5000 7000 500 55
UNKONW - could not find requirements: speedtest-cli or pyspeedtest
Download speedtest-cli https://github.com/sivel/speedtest-cli
Download: pyspeedtest https://github.com/fopina/pyspeedtest
Re: internet speed
I installed speedtest-cli https://www.mysterydata.com/speed-test- ... dtest-cli/
[root@nagios ~]# speedtest-cli
Retrieving speedtest.net configuration...
Testing from xxxxxxxxxxx LLC (xxxxxxxxxxxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted byxxxxxxxxxx [227.64 km]: 100.532 ms
Testing download speed................................................................................
Download: 18.67 Mbit/s
Testing upload speed................................................................................................
Upload: 20.40 Mbit/s
How can i continue ... to integrate it into nagios?
[root@nagios ~]# speedtest-cli
Retrieving speedtest.net configuration...
Testing from xxxxxxxxxxx LLC (xxxxxxxxxxxx)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted byxxxxxxxxxx [227.64 km]: 100.532 ms
Testing download speed................................................................................
Download: 18.67 Mbit/s
Testing upload speed................................................................................................
Upload: 20.40 Mbit/s
How can i continue ... to integrate it into nagios?
Re: internet speed
There are some other plugins that you could try if this one is not working for you. For example, you can try check_speedtest-cli:
https://exchange.nagios.org/directory/P ... li/details
Download the plugin and install it via the Nagios XI web UI (Admin > Manage Plugins > Browse > check_speedtest-cli.sh > Convert line endings = checked > Upload Plugin
You need to find where the speedtest-cli is installed:
Example:
Then, you will need to specify the location of the "speedtest-cli" in the "check_speedtest-cli.sh" plugin (line 175):
Save and exit.
Find a speedtest server close to you by running:
Copy the ID, and use it in your command. For example, I am using "1776":
Once you make sure that your check works from the command line, you can add a new command and a service in XI by following the steps, outlined in the document below:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
https://exchange.nagios.org/directory/P ... li/details
Download the plugin and install it via the Nagios XI web UI (Admin > Manage Plugins > Browse > check_speedtest-cli.sh > Convert line endings = checked > Upload Plugin
You need to find where the speedtest-cli is installed:
Example:
Code: Select all
which speedtest-cli
/usr/bin/speedtest-cliCode: Select all
STb=/usr/bin/Find a speedtest server close to you by running:
Code: Select all
speedtest --listCode: Select all
1776) Comcast (Chicago, IL, United States) [565.39 km]Code: Select all
./check-speedtest-cli.sh -l e -s 1776 -w 20 -c 15 -W 10 -C 5
OK - Ping = 12.423 ms Download = 95.02 Mbit/s Upload = 105.26 Mbit/shttps://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: internet speed
I will check it tomorrow and update you
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: internet speed
Hello,
Sounds good. We'll wait for your update.I will check it tomorrow and update you
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: internet speed
Code: Select all
[root@nagios libexec]# ./check_speedtest-cli.sh -l e -s 3650 -w 20 -c 15 -W 10 -C 5
CRITICAL - Ping = 45.597 ms Download = 12.70 Mbit/s Upload = 14.67 Mbit/s
Re: internet speed
Done ... please close the ticket
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: internet speed
Great!fsodah wrote:Done ... please close the ticket
Locking thread