Network and Systems Management

check_speed.sh

Description:

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

Options:
–interval|-i)
Defines the download file times
propose set 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

Current Version

1.0.0

Last Release Date

2011-01-25

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x

Owner

License

GPL


Project Files
Project Notes
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) Add a Review
some comments
by sip, October 31, 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 .......... .......... .....



Project Stats
Rating
3.5 (2)
Favorites
0
Views
98,958