Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Proxy with Authentication
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!
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.
+++ 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)
bydavidparks21, October 24, 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.
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.