Websites, Forms and Transactions

check_webpage.sh

Description:

IMPORTANT CHANGES IN NEW VERSION!!!!!!
* The -f and -A options are no more needed.
* The -tw and -tc options expect the time to be indicated in MILLISECONDS, not in seconds!!!

Current Version

2.0

Last Release Date

2013-04-08

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion

License

GPL


Project Files
Project Notes
DESCRIPTION: The principal object of check_webpage.sh is to give stats about the time a complete webpage takes to load. You can monitor your own webpages or you can take some general stats of your navigation infraestructure. By default the script always gives an OK state because it has statistical purposes, but is prepared to give you warning or critical states depending on the values you want for elapsed time or percentaje of erroneous downloaded files The script basically use wget to obtain an entire webpage with her own dependences (css, images, etc). I prefer wget instead curl because it has more recursion support to parse and obtain dependences. The problem is that wget download the index.html and parse it to obtain the rest of dependences, so you need to have this file in somewhere to download de rest. If you have to exec various checks at same time, all the work can be used in I/O opperations and you are going to take bad results in your stats. If you try to redirect all to /dev/null you can't parse the index.html and the download end. To solve this problem I use a TMPFS File System of 6 Mb that is unmounted when the script ends or if we receive some TERM signal Use -h or --help to see the options it can use. If you are getting some trouble, use the -D (Debug) option to see what the script are doing. The Debug output is sent to STDERR IMPORTANT: Read the comments in the script to see how it works and the necessary configuration dependences of your system ;)
Reviews (2) Add a Review
Nice script, nice owner
by Koobal, October 31, 2012

Thanks Alejandro for your help ! Very nice script and a very comprehensive scripter.



check_webpage.sh - great plugin
by kperas, March 31, 2012

needed to check Webpage / Tomcats and so. Found this plugin, and it was not working the way i wanted. BUT THEN!!!! Had great support from Alejandro, the maker of this plugin! He really helped making the plugin work, the way i need it!! Again: Thanks a lot Alejandro! If you want to check your webpages, i highly recommend this plugin.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.8 (15)
Favorites
2
Views
83,314