Page 1 of 1

internet speed

Posted: Sun Oct 20, 2019 12:54 pm
by fsodah
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

Posted: Sun Oct 20, 2019 1:50 pm
by fsodah
[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

Re: internet speed

Posted: Sun Oct 20, 2019 2:27 pm
by fsodah
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?

Re: internet speed

Posted: Mon Oct 21, 2019 9:49 am
by lmiltchev
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:

Code: Select all

which speedtest-cli
/usr/bin/speedtest-cli
Then, you will need to specify the location of the "speedtest-cli" in the "check_speedtest-cli.sh" plugin (line 175):

Code: Select all

STb=/usr/bin/
Save and exit.

Find a speedtest server close to you by running:

Code: Select all

speedtest --list
Copy the ID, and use it in your command. For example, I am using "1776":

Code: 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/s
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

Re: internet speed

Posted: Mon Oct 21, 2019 2:58 pm
by fsodah
I will check it tomorrow and update you

Re: internet speed

Posted: Mon Oct 21, 2019 3:28 pm
by benjaminsmith
Hello,
I will check it tomorrow and update you
Sounds good. We'll wait for your update.

Re: internet speed

Posted: Tue Oct 22, 2019 12:18 am
by fsodah

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
Will continue with the integration in nagios GUI ..

Re: internet speed

Posted: Tue Oct 22, 2019 2:57 am
by fsodah
Done ... please close the ticket

Re: internet speed

Posted: Tue Oct 22, 2019 6:16 am
by scottwilkerson
fsodah wrote:Done ... please close the ticket
Great!

Locking thread