Search All Sites
Nagios Live WebinarsLet our experts show you how Nagios can help your organization.
Don't miss your chance to attend the 2014 Nagios World Conference, Oct 13-16th. Informative Sessions, Networking, Food and Cocktails! Visit go.nagios.com/conference/ for more information or to register.
This is a very simple proxy script that tests functionality from the user's point of view (does the page come through as expected versus a direct download). It should work with any proxy server that is compatible with wget.
To make use of this script, you will need the following binaries:
Once you've downloaded the file to your plugins directory, here's a sample command definition for your Nagios configuration files:
command_line $USER1$/check_proxy http://$HOSTADDRESS$:8080/
The port is still hard coded currently, but it works with Squid 2.5 at least. YMMV
I have checked this and it worked fine, since we have a proxy user name and password, i have modified the script by adding the proxyuser and proxypassword to wget, this you can do it in two ways, either you hard code the user name and password or pass it as a argument