Websites, Forms and Transactions

Check Proxy with Authentication

Description:

This BASH script uses wget and its parameters to accept a proxy server IP plus credentials to access the website passed to it. It uses spider functionality to access the website and confirm that the correct site is accessed. Block pages are recognized as

Current Version

Last Release Date

June 22, 2009

Compatible With


Project Files
Project Notes
The script uses the standard BASH framework used in other plugins. +++ Requires: * utils.sh included with nagios * recent wget installation (test only with 1.9+cvs-stable) The script gets the http_proxy parameters from the command line and export them to this wget variable. An installation of wget that supports the spider option. +++ Returns: STATE_OK if wget execution is successful, STATE_CRITICAL if wget execution encounters an error, and STATE_UNKNOWN for everything else. +++ Known Issues: Some webpages like http://www.dhs.gov don't work properly. I think it has something to do with how the web page directory is published. This causes wget to just hang. Most pages seem to work though. +++ Future: I hope to add in https functionality. At the moment, it only supports http. +++ Notes: This was tested against BlueCoat proxy boxes only. It should work for any old HTTP proxy, but since this script is based on wget, you probably want to research wget proxy support if you have problems. +++ Credits: Nagios project for their script outline for returning results to the nagios engine and to Sun Yu for introducing me to the wget tool. Naturally, I must thank Mauro Tortonesi(maintainer) and Hrvoje Nikši?(creator) for bringing us this great tool.
Reviews (1) Add a Review
Nice start, a few robustness issues with the script
by davidparks21, October 31, 2011

Thanks for providing this script! A few issues I ran into: - The help shows -u for the username and -u for the url, it should be -URL - On a recent Ubuntu installation it didn't recognize the "support" command on line 48, I don't recognize it either - I just removed it. - Would be handy to make the --spider optional, I removed it in my case. - Line 31: PROGPATH=... doesn't work when you put the script in the typical [/usr/lib/nagios/plugins/contrib] folder, it needs to find utils.sh in the parent folder.



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
2 (1)
Favorites
0
Views
104,671