Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_speed.sh

Current Version
1.0.0
Last Release Date
2011-01-25
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
98953
Files:
FileDescription
check_speed.shcheck_speed.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
check_speed.sh [-i/--interval] [-u|--url] [-w/--warning] [-c/--critical]

Options:
--interval|-i)
Defines the download file times
propose set < 5 second and > 10 second
Default is: 5 second

--url|-u)
Sets url page
Defautl is :http://mirrors.163.com/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-LiveCD.iso
Please set Fastest url

--warning|-w)
Sets a warning level for download speed. Defautl is: off

--critical|-c)
Sets a critical level for download speed. Defautl is: off
Version 1.0 2010.11.17,www.nginxs.com
check_speed.sh is a Nagios plugin to monitor download speed
Use of wget download url file
When using optional warning/critical thresholds all values except
Usage parameters:

check_speed.sh [-i/--interval] [-u|--url] [-w/--warning] [-c/--critical]

Options:
--interval|-i)
Defines the download file times
propose set < 5 second and > 10 second
Default is: 5 second

--url|-u)
Sets url page
Defautl is :http://mirrors.163.com/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-LiveCD.iso
Please set Fastest url

--warning|-w)
Sets a warning level for download speed. Defautl is: off

--critical|-c)
Sets a critical level for download speed. Defautl is: off
Reviews (1)
bysip, October 23, 2012
Hallo Team,
I am new to Nagios, actually i worked with it but not configured it.
For me the download of this file did not worked so ... copy/pase and convert it to unix format(vi).
Can someone tell me how do i integrte it in nagiosxi, i mean how do i create a host and add it to this host as service.
From command line it is working fine with all his parameters.

some comments:
-it is not designed to return flooating numbers
-the seaquence that process the "speed" is not tuned up... it gets tha last 20 rows from wget-log, but if the last line isnĀ“t compleat then we should not count the last line
-if in the output file M and K speed then the script is returning a wrong value....
28850K .......... .......... .......... .......... .......... 4% 3.83M 2m47s
28900K .......... .......... .......... .......... .......... 4% 3.85M 2m47s
28950K .......... .......... .......... .......... .......... 4% 3.83M 2m47s
29000K .......... .......... .......... .......... .......... 4% 3.84M 2m47s
29050K .......... .......... .......... .......... .......... 4% 3.70M 2m47s
29100K .......... .......... .......... .......... .......... 4% 3.77M 2m47s
29150K .......... .......... .......... .......... .......... 4% 968K 2m47s
29200K .......... .......... .......... .......... .......... 4% 3.74M 2m47s
29250K .......... .......... .......... .......... .......... 4% 800K 2m47s
29300K .......... .......... .......... .......... .......... 4% 3.77M 2m47s
29350K .......... .......... .....