Squid Web Proxy

check_squid - Nagios check plugin for testing a Squid proxy

This check command runs a HTTP request through your proxy.

You can use it to check the basic proxy operation, authentication and even authentication on a certain web site.

You may check for any HTTP error/result code.

So this plugin can be useful for checking that certain server do not allow access without authentication, too.

Synopsis:


check_squid --url=https://exchange.icinga.org -t 20 -p proxy.mydomain -I 3128 -o myuser -m myuserpass -e 200 

Options:

-V, --version Version this script
-h, --help Help
-t, --timeout=INTEGER default 15s
-u, --url=http://< site > The URL to check on the internet (http://www.google.com)
-n, --urluser=username Username if the web site required authentication
-s, --urlpass=password Password if the web site required authentication
-p, --proxy=proxy Server that squid runs on (proxy.mydomain)
-l, --proxyport=INTEGER TCP port that Squid listens on (3128)
-o, --proxyuser=proxyuser Username if the web site required authentication
-m, --proxypass=proxypass Password if the web site required authentication
-e, --status=INTEGER HTTP code that should be returned