internet speed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

internet speed

Post 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)
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: internet speed

Post 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
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: internet speed

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: internet speed

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: internet speed

Post by fsodah »

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

Post by benjaminsmith »

Hello,
I will check it tomorrow and update you
Sounds good. We'll wait for your update.
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!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: internet speed

Post 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 ..
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: internet speed

Post by fsodah »

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

Post by scottwilkerson »

fsodah wrote:Done ... please close the ticket
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked