check_http plugin and a proxy?
Marc Powell
marc at ena.com
Sat Apr 21 17:50:09 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Frost, Mark {PBG}
> Sent: Friday, April 20, 2007 9:18 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_http plugin and a proxy?
>
>
> Hello.
>
> I have the Nagios Plugins 1.4.8. Is it possible to make check_http
use
> a proxy to talk to another host? We had been using an older version
of
> check_http_perl which will allow us to use a proxy host. I'm
converting
> most of our checks to use the check_http code and I don't see anything
> that indicates that I can tell it to use a proxy. Is this possible?
Yes, using the -H, -I and -u parameters. For example, the following
command will request www.example.bar through the proxy located at
$HOSTADDRESS$ via port 8080 and verify that it sees either '/html' or
'/HTML' --
define command {
command_name check_caching
command_line $USER1$/check_http -H www.example.bar
-I $HOSTADDRESS$ -p 8080 -wt 20 -ct 30 -to 35 -u http://www.example.bar
-R \/html
}
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list