Websites, Forms and Transactions

Check HTTP Requisites

Description:

A python checker that downloads a webpage using wget including all page requisites so that it is possible to monitor the real amount of data transferred to the user

Current Version

Last Release Date

June 22, 2009

Compatible With


Project Files
Project Notes
++ Description A python checker that downloads a webpage using wget including all page requisites so that it is possible to monitor the real amount of data transferred to the user. This can be useful to monitor the user experience from the place where the nagios check is executed. The package includes the check and a file with a demo configuration. ++ Limitation The authentication is done Zope-style as this emerged from a Zope project. ++ Usage check_http_requisites.py options Options: -h/--help -- print this help text -U/--url -- the URL you want to check -w/--warn -- seconds threshold for the warning state. -c/--crit -- seconds threshold for the critical state -u/--user -- username if you want to check authenticated -p/--passwd -- password
Reviews (2) Add a Review
Several bugs, did not work out of the box with wget 1.12-5
by csen, July 31, 2015

I noticed the following design flaws: - if critical/warning thresholds are omitted, Python gives error "UnboundLocalError: local variable 'warn' referenced before assignment" instead of a proper command usage help - Python 2.6.6 "DeprecationWarning: os.popen4 is deprecated. Use the subprocess module." - Parsing wget output is prone to errors, it only splits output line based on spaces and picks up elems = lines[-2].split(" ") size = elems[1] num = elems[4] Unfortunately at least for wget 1.12-5 on CentOS6.6 the structure of wget output did not match this assumption. I had to change it to size = elems[3] num = elems[1] After this fix the plugin did seem to work.



awesomee
by manojece54, March 31, 2012

Thanks !!!! ... i can able to monitor website without giving index.php or index.html like that....



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 (3)
Favorites
0
Views
104,154